diff --git a/.babelrc b/.babelrc index 2b7bafa..1320b9a 100644 --- a/.babelrc +++ b/.babelrc @@ -1,3 +1,3 @@ { - "presets": ["@babel/preset-env", "@babel/preset-react"] + "presets": ["@babel/preset-env"] } diff --git a/package.json b/package.json index fe7a2e2..47c769b 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.3.0", "description": "Remote debugging for mobx.", "main": "lib/index.js", + "module": "src/index.js", "files": [ "src", "lib", @@ -40,7 +41,6 @@ "@babel/cli": "^7.2.3", "@babel/core": "^7.2.2", "@babel/preset-env": "^7.3.1", - "@babel/preset-react": "^7.0.0", "babel-eslint": "^10.0.1", "babel-loader": "^8.0.5", "eslint": "^2.13.1", diff --git a/src/index.js b/src/index.js index 83a0afc..9287932 100644 --- a/src/index.js +++ b/src/index.js @@ -1,4 +1,4 @@ -import getDecorator from './getDecorator'; +const getDecorator = require('./getDecorator').default; if (process.env.NODE_ENV === 'development') { module.exports = require('./dev').default; // eslint-disable-line global-require