Skip to content

Commit

Permalink
fix: bundle resolve, closes #11
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed May 16, 2020
1 parent 862038b commit 1266947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export async function createRollupConfigs(files: string[], options: Options) {
commonjsPlugin({
namedExports: {
// commonjs plugin failed to detect named exports for `resolve`, TODO: report this bug
resolve: Object.keys(require('resolve')),
resolve: Object.keys(await import('resolve')),
},
// @ts-ignore wrong typing in @rollup/plugin-commonjs
ignore: (name: string) => {
Expand Down

0 comments on commit 1266947

Please sign in to comment.