Skip to content

Commit

Permalink
Add noop browser version of resolveImportedValue
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed May 4, 2019
1 parent 00b3d35 commit 268b828
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
"src"
],
"testRegex": "/__tests__/.*-test\\.js$"
},
"browser": {
"./dist/utils/resolveImportedValue.js": "./dist/utils/resolveImportedValue.browser.js"
}
}
4 changes: 4 additions & 0 deletions src/utils/resolveImportedValue.browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default function resolveImportedValue() {
// The browser build does not support importing due to the lack of fs access.
return null;
}

0 comments on commit 268b828

Please sign in to comment.