Skip to content

Commit

Permalink
fix: Fix broken UMD build (#587)
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry authored and Claudéric Demers committed Aug 22, 2019
1 parent 91fe96f commit 6cb7750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const umdConfig = ({minify} = {}) => ({
external: ['react', 'react-dom', 'prop-types'],
output: {
name: 'SortableHOC',
file: minify ? pkg.browser.replace('.js', '.min.js') : pkg.browser,
file: minify ? pkg["umd:main"].replace('.js', '.min.js') : pkg["umd:main"],
format: 'umd',
globals: {
react: 'React',
Expand All @@ -59,7 +59,7 @@ const umdConfig = ({minify} = {}) => ({
),
}),
commonjs(),
minify && uglify(),
minify ? uglify() : { },
filesize(),
],
});
Expand Down

0 comments on commit 6cb7750

Please sign in to comment.