Skip to content

Commit ae8dd3c

Browse files
committed
Silence rollup warning
1 parent d13e501 commit ae8dd3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rollup.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ export default {
1717
moduleName: pkg.amdName,
1818
dest: format==='es' ? pkg.module : format==='umd' ? pkg['umd:main'] : pkg.main,
1919
external: ['preact'],
20+
globals: {
21+
preact: 'preact'
22+
},
2023
entry: 'src/index.js',
2124
plugins: [
2225
alias({

0 commit comments

Comments
 (0)