Skip to content

Commit

Permalink
update build file to include all external dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
yaodingyd committed Jan 31, 2023
1 parent ae448ab commit e615094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ const __dirname = fileURLToPath(new URL('.', import.meta.url))
fileName: (format) => `react-flickity-component.${format}.js`,
},
rollupOptions: {
external: ['react', 'react-dom'],
external: ['react', 'react-dom', 'imagesloaded', 'prop-types', 'flickity'],
output: {
globals: {
react: 'React',
'react-dom': 'ReactDOM',
imagesloaded: 'imagesloaded',
'prop-types': 'PropTypes',
},
},
},
Expand Down

0 comments on commit e615094

Please sign in to comment.