diff --git a/tsconfig.json b/tsconfig.json index f5f069146c5..65d5791e94b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,21 +5,15 @@ "strictNullChecks": true, "module": "esnext", "jsx": "react", - "target": "es5", + "target": "es2015", "allowJs": true, "baseUrl": "./common/", - "lib": [ - "es2017", - "dom" - ], + "lib": ["es2017", "dom"], "allowSyntheticDefaultImports": true, "moduleResolution": "node", "noEmitOnError": false }, - "include": [ - "./common/", - "./node_modules/types-bn/index.d.ts" - ], + "include": ["./common/", "./node_modules/types-bn/index.d.ts"], "awesomeTypescriptLoaderOptions": { "transpileOnly": true } diff --git a/webpack_config/webpack.dev.js b/webpack_config/webpack.dev.js index 4bf406faec5..d5c1a3d6db0 100644 --- a/webpack_config/webpack.dev.js +++ b/webpack_config/webpack.dev.js @@ -24,11 +24,14 @@ base.module.loaders.push( } ); -base.plugins.push( +base.plugins.unshift( new webpack.DllReferencePlugin({ context: path.join(__dirname, '../common'), manifest: require('../dll/vendor-manifest.json') - }), + }) +); + +base.plugins.push( new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('development') }),