We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48f4454 commit 9caa59eCopy full SHA for 9caa59e
example/src/initGlobals.ts
@@ -2,11 +2,11 @@ import { Buffer as CraftzdogBuffer } from '@craftzdog/react-native-buffer'
2
3
declare global {
4
var Buffer: typeof CraftzdogBuffer
5
+}
6
- var process: {
7
- cwd: () => string
8
- env: { NODE_ENV: string }
9
- }
+if (!globalThis.process) {
+ // @ts-expect-error
+ globalThis.process = {}
10
}
11
12
globalThis.Buffer = CraftzdogBuffer
example/tsconfig.json
@@ -2,6 +2,8 @@
"extends": "../config/tsconfig.json",
"include": ["src", "index.js"],
"compilerOptions": {
- "experimentalDecorators": true
+ "experimentalDecorators": true,
+ "module": "ESNext",
+ "moduleResolution": "Bundler"
0 commit comments