From 9efdfa314fbe423d5348246faa70b76e088eb36b Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 26 Jun 2017 09:04:42 +0900 Subject: Enable scope hoisting --- webpack/plugins/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webpack/plugins/index.ts') diff --git a/webpack/plugins/index.ts b/webpack/plugins/index.ts index 3581f61b5e..99b16c2b05 100644 --- a/webpack/plugins/index.ts +++ b/webpack/plugins/index.ts @@ -1,6 +1,7 @@ const StringReplacePlugin = require('string-replace-webpack-plugin'); import constant from './const'; +import hoist from './hoist'; //import minify from './minify'; import banner from './banner'; @@ -12,7 +13,8 @@ const isProduction = env === 'production'; export default version => { const plugins = [ constant(), - new StringReplacePlugin() + new StringReplacePlugin(), + hoist() ]; /* if (isProduction) { -- cgit v1.2.3-freya