added klaro exclusion to webpack/tsconfig

This commit is contained in:
lotte
2020-08-27 17:38:31 +02:00
parent 3e1fb243a1
commit b3b934033c
3 changed files with 17 additions and 2 deletions

View File

@@ -15,6 +15,6 @@
"src/**/*.stub.ts",
"src/**/testing/*",
"src/**/mocks/*",
"node_modules/klaro"
"node_modules/klaro/*"
],
}

View File

@@ -25,7 +25,13 @@ module.exports = {
module: {
noParse: /polyfills-.*\.js/,
rules: [
{ test: /\.ts$/, loader: 'ts-loader',
{
test: /\.js$/,
exclude: [/node_modules\/klaro/],
},
{
test: /\.ts$/, loader: 'ts-loader',
options: {
configFile: "tsconfig.server.json"
} },

View File

@@ -18,6 +18,15 @@ module.exports = Object.assign({}, commonExports, {
recordsOutputPath: projectRoot('webpack.records.json'),
entry: buildRoot('./main.server.ts'),
target: 'node',
module: {
rules: [
...commonExports.module.rules,
{
test: /\.js$/,
exclude: [/node_modules\/klaro/],
}
]
},
externals: [nodeExternals({
whitelist: [
/@angular/,