Skip to content

Commit 3ddb63d

Browse files
committed
Ignore circular import warning
1 parent 0a3ebeb commit 3ddb63d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

rollup.test.config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ export default {
88
output: {
99
name: 'test',
1010
format: 'iife',
11-
sourcemap: 'inline'
11+
sourcemap: 'inline',
12+
},
13+
plugins: [resolve(), commonjs(), babel(), json()],
14+
onwarn: (warning, warn) => {
15+
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
16+
warn(warning);
1217
},
13-
plugins: [resolve(), commonjs(), babel(), json()]
1418
};

0 commit comments

Comments
 (0)