Skip to content

Commit

Permalink
Tweak build script to not corrupt import-fresh
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 21, 2020
1 parent 171bc96 commit c9225ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/build/config.js
Expand Up @@ -169,6 +169,7 @@ const coreBundles = [
// cosmiconfig@5 -> import-fresh uses `require` to resolve js config, which caused Error:
// Dynamic requires are not currently supported by rollup-plugin-commonjs.
"require(filePath)": "eval('require')(filePath)",
"parent.eval('require')(filePath)": "parent.require(filePath)",
"require.cache": "eval('require').cache",
// cosmiconfig@6 -> import-fresh can't find parentModule, since module is bundled
"parentModule(__filename)": "__filename",
Expand Down

0 comments on commit c9225ca

Please sign in to comment.