From ae6f4567a11fe6ab9cfd03e8ef16b5fcf239c3be Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 18 Oct 2016 17:06:00 +0300 Subject: [PATCH] Emit helpers for module build --- build/webpack.dev.js | 2 +- build/webpack.prod.js | 7 +++++-- build/webpack.test.js | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/build/webpack.dev.js b/build/webpack.dev.js index ff2ddacc..cc6afc4a 100644 --- a/build/webpack.dev.js +++ b/build/webpack.dev.js @@ -18,7 +18,7 @@ module.exports = { } }, externals: { - "jquery": "jQuery", + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: { diff --git a/build/webpack.prod.js b/build/webpack.prod.js index 718da7e4..a0bca691 100644 --- a/build/webpack.prod.js +++ b/build/webpack.prod.js @@ -24,7 +24,7 @@ const config = { } }, externals: { - 'jquery': 'jQuery', + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: { @@ -61,7 +61,10 @@ const config = { },{ test: /\.ts$/, loader: 'awesome-typescript-loader', - exclude: /(node_modules)/ + exclude: /(node_modules)/, + query: IS_MODULE ? { + noEmitHelpers: false, + } : {} }, { test: /lib[\\\/].*\.css$/, loaders: ['raw-loader'], diff --git a/build/webpack.test.js b/build/webpack.test.js index 869faf91..519cc56a 100644 --- a/build/webpack.test.js +++ b/build/webpack.test.js @@ -15,7 +15,7 @@ module.exports = { } }, externals: { - "jquery": "jQuery", + 'jquery': 'jquery', 'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc }, node: {