Skip to content

Commit 7acc9ca

Browse files
committed
Remove typescript import warning
1 parent d66fb1f commit 7acc9ca

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rollup.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@ export default {
2929
},
3030
{ format: 'cjs', dir: 'dist/cjs/' }
3131
],
32+
onwarn: (warning, warn) => {
33+
// supress warning as Typescript removes type definitions
34+
if (warning.code === 'NON_EXISTENT_EXPORT') {
35+
return
36+
}
37+
38+
warn(warning)
39+
},
3240
plugins: [
3341
json(),
3442
image(),

0 commit comments

Comments
 (0)