Skip to content

Commit 268b828

Browse files
committed
Add noop browser version of resolveImportedValue
1 parent 00b3d35 commit 268b828

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,8 @@
8080
"src"
8181
],
8282
"testRegex": "/__tests__/.*-test\\.js$"
83+
},
84+
"browser": {
85+
"./dist/utils/resolveImportedValue.js": "./dist/utils/resolveImportedValue.browser.js"
8386
}
8487
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default function resolveImportedValue() {
2+
// The browser build does not support importing due to the lack of fs access.
3+
return null;
4+
}

0 commit comments

Comments
 (0)