Skip to content

Commit df58bb5

Browse files
committed
fesm5::core.js::System.import() is deprecated and will be removed soon. Use import() instead. #12
1 parent b3fb05c commit df58bb5

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

project/application/webpack.server.config.js

+9-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ module.exports = {
1313
filename: '[name].js',
1414
},
1515
module: {
16-
rules: [{ test: /\.ts$/, loader: 'ts-loader' }],
16+
rules: [
17+
{ test: /\.ts$/, loader: 'ts-loader' },
18+
{
19+
// Mark files inside `@angular/core` as using SystemJS style dynamic imports.
20+
// Removing this will cause deprecation warnings to appear.
21+
test: /[\/\\]@angular[\/\\]core[\/\\].+\.js$/,
22+
parser: { system: true },
23+
},
24+
],
1725
},
1826
plugins: [
1927
// Temporary Fix for issue: https://github.com/angular/angular/issues/11580
@@ -25,7 +33,4 @@ module.exports = {
2533
),
2634
new webpack.ContextReplacementPlugin(/(.+)?express(\\|\/)(.+)?/, path.join(__dirname, 'src'), {}),
2735
],
28-
stats: {
29-
warningsFilter: /System.import/,
30-
},
3136
};

0 commit comments

Comments
 (0)