mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
added klaro exclusion to webpack/tsconfig
This commit is contained in:
@@ -15,6 +15,6 @@
|
|||||||
"src/**/*.stub.ts",
|
"src/**/*.stub.ts",
|
||||||
"src/**/testing/*",
|
"src/**/testing/*",
|
||||||
"src/**/mocks/*",
|
"src/**/mocks/*",
|
||||||
"node_modules/klaro"
|
"node_modules/klaro/*"
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@@ -25,7 +25,13 @@ module.exports = {
|
|||||||
module: {
|
module: {
|
||||||
noParse: /polyfills-.*\.js/,
|
noParse: /polyfills-.*\.js/,
|
||||||
rules: [
|
rules: [
|
||||||
{ test: /\.ts$/, loader: 'ts-loader',
|
{
|
||||||
|
test: /\.js$/,
|
||||||
|
exclude: [/node_modules\/klaro/],
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
test: /\.ts$/, loader: 'ts-loader',
|
||||||
options: {
|
options: {
|
||||||
configFile: "tsconfig.server.json"
|
configFile: "tsconfig.server.json"
|
||||||
} },
|
} },
|
||||||
|
@@ -18,6 +18,15 @@ module.exports = Object.assign({}, commonExports, {
|
|||||||
recordsOutputPath: projectRoot('webpack.records.json'),
|
recordsOutputPath: projectRoot('webpack.records.json'),
|
||||||
entry: buildRoot('./main.server.ts'),
|
entry: buildRoot('./main.server.ts'),
|
||||||
target: 'node',
|
target: 'node',
|
||||||
|
module: {
|
||||||
|
rules: [
|
||||||
|
...commonExports.module.rules,
|
||||||
|
{
|
||||||
|
test: /\.js$/,
|
||||||
|
exclude: [/node_modules\/klaro/],
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
externals: [nodeExternals({
|
externals: [nodeExternals({
|
||||||
whitelist: [
|
whitelist: [
|
||||||
/@angular/,
|
/@angular/,
|
||||||
|
Reference in New Issue
Block a user