diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 39266a52..00000000 --- a/.babelrc +++ /dev/null @@ -1,25 +0,0 @@ -{ - "presets": [ - [ - "@babel/preset-react", - { - "runtime": "automatic" - } - ], - "@babel/env" - ], - "plugins": [ - "@babel/plugin-proposal-object-rest-spread", - [ - "module-resolver", - { - "root": ["./"], - "alias": { - "components": "./src/components", - "lib": "./src/lib", - "styles": "./src/styles" - } - } - ] - ] -} diff --git a/babel.config.json b/babel.config.json index e5563458..d6497ed3 100644 --- a/babel.config.json +++ b/babel.config.json @@ -1,16 +1,15 @@ { "env": { "development": {"comments": false, "minified": true}, - "production": {"comments": true, "minified": false} + "production": {"comments": true, "minified": false}, + "test": { + "sourceType": "unambiguous", + "presets": [["@babel/env", {"modules": "commonjs"}]] + } }, "presets": [ - [ - "@babel/preset-react", - { - "runtime": "automatic" - } - ], - "@babel/env" + ["@babel/env", {"modules": false}], + ["@babel/preset-react", {"runtime": "automatic"}] ], "plugins": [ "react-hot-loader/babel", @@ -27,6 +26,4 @@ } ] ] - // "comments": false, - // "minified": true, } diff --git a/package.json b/package.json index 4713694a..84dd8eef 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@figlinq/react-chart-editor", "description": "plotly.js chart editor react component UI", - "version": "0.49.5", + "version": "0.50.0", "author": "Figlinq", "bugs": { "url": "https://github.com/figlinq/react-chart-editor/issues" @@ -27,7 +27,7 @@ }, "dependencies": { "@appigram/react-rangeslider": "^2.2.19", - "@figlinq/plotly-icons": "^3.0.0", + "@figlinq/plotly-icons": "^3.0.1", "@hello-pangea/color-picker": "^3.2.2", "@mdi/js": "^7.2.96", "@mdi/react": "^1.6.1", @@ -136,6 +136,7 @@ ], "license": "MIT", "main": "lib/index.js", + "module": "lib/index.js", "repository": { "type": "git", "url": "git+https://github.com/figlinq/react-chart-editor.git"