Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Commit f99d257

Browse files
Updating rollup to handle dynamic imports
1 parent 82548c8 commit f99d257

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

rollup.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,18 @@ export default {
2828
input: 'src/index.ts',
2929
output: [
3030
{
31+
banner,
3132
exports: 'named',
3233
file: `dist/${pkg.name}.js`,
3334
format: 'cjs',
34-
banner,
35+
inlineDynamicImports: true,
3536
},
3637
{
38+
banner,
3739
exports: 'named',
3840
file: `dist/${pkg.name}.es.js`,
3941
format: 'es',
40-
banner,
42+
inlineDynamicImports: true,
4143
},
4244
],
4345
external: [

0 commit comments

Comments
 (0)