Skip to content

Commit e615094

Browse files
committed
update build file to include all external dependencies
1 parent ae448ab commit e615094

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

build.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))
1515
fileName: (format) => `react-flickity-component.${format}.js`,
1616
},
1717
rollupOptions: {
18-
external: ['react', 'react-dom'],
18+
external: ['react', 'react-dom', 'imagesloaded', 'prop-types', 'flickity'],
1919
output: {
2020
globals: {
2121
react: 'React',
2222
'react-dom': 'ReactDOM',
23+
imagesloaded: 'imagesloaded',
24+
'prop-types': 'PropTypes',
2325
},
2426
},
2527
},

0 commit comments

Comments
 (0)