Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
update workaround for require.resolve rollup/plugins#406
Browse files Browse the repository at this point in the history
  • Loading branch information
thecotne committed Jun 7, 2020
1 parent 01ed7c1 commit 507bc4f
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions packages/language-server/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,10 @@ export default [
output: {
...base.output,
file: 'build/server.js',
},
plugins: [
replace({
'require.resolve': 'require_resolve',
}),
...base.plugins,
{
renderChunk (code) {
return 'var require_resolve = require.resolve.bind(require);\n' + code;
}
}
]
plugins: [
// workaround bug in @rollup/plugin-commonjs see https://github.com/rollup/plugins/issues/406
replace({ 'commonjsRequire.resolve': 'require.resolve' })
]
}
}
];

0 comments on commit 507bc4f

Please sign in to comment.