Emit helpers for module build

This commit is contained in:
Roman Hotsiy 2016-10-18 17:06:00 +03:00
parent 7045591ad6
commit ae6f4567a1
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0
3 changed files with 7 additions and 4 deletions

View File

@ -18,7 +18,7 @@ module.exports = {
}
},
externals: {
"jquery": "jQuery",
'jquery': 'jquery',
'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc
},
node: {

View File

@ -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'],

View File

@ -15,7 +15,7 @@ module.exports = {
}
},
externals: {
"jquery": "jQuery",
'jquery': 'jquery',
'esprima': 'esprima' // optional dep of ys-yaml not needed for redoc
},
node: {