Skip to content

Commit

Permalink
fix(load-cfg): add namedExports options
Browse files Browse the repository at this point in the history
  • Loading branch information
pedronauck committed Jun 1, 2018
1 parent 12a7610 commit d36194d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"dependencies": {
"docz": "^0.1.1-beta.4",
"docz-core": "^0.1.1-beta.4",
"emotion": "^9.1.3",
"prop-types": "^15.6.1",
"react": "^16.4.0",
Expand Down
2 changes: 2 additions & 0 deletions packages/load-cfg/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ export const loadFile = (
) => {
let file
const require = esm(module, {
mode: 'all',
cache: !noCache,
cjs: {
cache: !noCache,
namedExports: true,
},
})

Expand Down

0 comments on commit d36194d

Please sign in to comment.