Skip to content

Commit

Permalink
fixes #142 and #140
Browse files Browse the repository at this point in the history
  • Loading branch information
chrvadala committed Apr 27, 2019
1 parent 3ba8161 commit 08cb528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion babel.config.js
Expand Up @@ -8,7 +8,10 @@ module.exports = function (api) {

plugins.push("@babel/plugin-proposal-object-rest-spread")

presets.push(["@babel/preset-env", {modules: KEEP_MODULES ? false : 'commonjs'}])
presets.push(["@babel/preset-env", {
modules: KEEP_MODULES ? false : 'commonjs',
targets: "> 0.25%, not dead"
}])
presets.push("@babel/preset-react")

return {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -5,15 +5,15 @@
"description": "A React component that adds pan and zoom features to SVG",
"main": "./build-commonjs/index.js",
"module": "./build-es/index.js",
"browser": "./build-umd/react-svg-pan-zoom.min.js",
"unpkg": "./build-umd/react-svg-pan-zoom.min.js",
"jsnext:main": "./build-es/index.js",
"scripts": {
"start": "run-p storybook:start",
"build": "run-p clean library:build:commonjs library:build:es library:build:umd library:build:umd_min storybook:build",
"storybook:start": "start-storybook -p 9001 -s storybook/public -c storybook",
"storybook:build": "build-storybook -s storybook/public -c storybook -o build-storybook",
"storybook:publish": "gh-pages -m 'Update gh-pages' -d ./build-storybook",
"library:build:commonjs": "cross-env KEEP_MODULES=true babel --out-dir build-commonjs src",
"library:build:commonjs": "cross-env KEEP_MODULES=false babel --out-dir build-commonjs src",
"library:build:es": "cross-env KEEP_MODULES=true babel --out-dir build-es src",
"library:build:umd_min": "cross-env webpack --env.minimize",
"library:build:umd": "webpack",
Expand Down

0 comments on commit 08cb528

Please sign in to comment.