Skip to content

Commit

Permalink
fix(stark-build): ignore 'System.import()' messages due to @angular/core
Browse files Browse the repository at this point in the history
  • Loading branch information
ageorges-nbb committed Jan 7, 2019
1 parent dd2eac0 commit 8ee3938
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/stark-build/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const commonData = require("./webpack.common-data.js"); // common configuration
*
* problem with copy-webpack-plugin
*/
// const DefinePlugin = require("webpack/lib/DefinePlugin");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const BaseHrefWebpackPlugin = require("base-href-webpack-plugin").BaseHrefWebpackPlugin;
Expand Down Expand Up @@ -139,6 +138,13 @@ module.exports = options => {
*/
module: {
rules: [
{
// Mark files inside `@angular/core` as using SystemJS style dynamic imports.
// Removing this will cause deprecation warnings to appear.
test: /[\/\\]@angular[\/\\]core[\/\\].+\.js$/,
parser: { system: true },
},

// TODO could we use BuildOptimizer in all environments?
// BuildOptimizer should only be used with AOT
// see https://github.com/angular/angular-cli/issues/8594
Expand Down

0 comments on commit 8ee3938

Please sign in to comment.