Skip to content

Commit 89aae21

Browse files
committed
chore: ignore the circular warning from rollup
1 parent 47d5985 commit 89aae21

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

rollup.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const builds = {
3434
};
3535

3636
function getAllBuilds() {
37-
return Object.keys(builds).map(key => genConfig(builds[key]));
37+
return Object.keys(builds).map((key) => genConfig(builds[key]));
3838
}
3939

4040
function genConfig({ outFile, format, mode }) {
@@ -51,6 +51,11 @@ function genConfig({ outFile, format, mode }) {
5151
name: format === 'umd' ? 'vueCompositionApi' : undefined,
5252
},
5353
external: ['vue'],
54+
onwarn: (msg, warn) => {
55+
if (!/Circular/.test(msg)) {
56+
warn(msg);
57+
}
58+
},
5459
plugins: [
5560
typescript({
5661
typescript: require('typescript'),

0 commit comments

Comments
 (0)