diff --git a/.babelrc b/.babelrc index 4d21215..36ee67c 100644 --- a/.babelrc +++ b/.babelrc @@ -3,8 +3,9 @@ [ "@babel/preset-env", { + "modules": false, "targets": { - "chrome": "67" + "esmodules": true } } ], diff --git a/tsconfig.json b/tsconfig.json index 08918c4..a1b72b9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,15 +1,13 @@ { "compilerOptions": { - "target": "es2016", - "outDir": "dist", + "moduleResolution": "Node", + "module": "ESNext", + "target": "ESNext", "jsx": "react", - "allowJs": true, - "module": "commonjs", "strict": true, - "resolveJsonModule": true, "lib": ["dom", "es2017.object", "es2016"], "baseUrl": ".", - "experimentalDecorators": true, + "outDir": "dist", "paths": { "*": ["src/*", "packages/*"] } diff --git a/webpack.config.js b/webpack.config.js index 33e3307..1483add 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -81,6 +81,8 @@ module.exports = { cacheDirectory: true, }, include: [srcPath, packagesPath], + exclude: /node_modules/, + sideEffects: false, }, { test: /\.scss$/,