Skip to content

Commit 0680ecd

Browse files
committed
Fixed the import statement so webpack doesnt show an error
1 parent c3452ea commit 0680ecd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addon/ng2/models/webpack-build-common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
4545
test: /(systemjs_component_resolver|system_js_ng_module_factory_loader)\.js$/,
4646
loader: 'string-replace-loader',
4747
query: {
48-
search: '(lang_1(.*[\\n\\r]+\\s*\\.|\\.))?(global(.*[\\n\\r]+\\s*\\.|\\.))?(System|SystemJS)(.*[\\n\\r]+\\s*\\.|\\.)import',
49-
replace: 'System.import',
48+
search: '(lang_1(.*[\\n\\r]+\\s*\\.|\\.))?(global(.*[\\n\\r]+\\s*\\.|\\.))?(System|SystemJS)(.*[\\n\\r]+\\s*\\.|\\.)import\\(',
49+
replace: 'System.import("" + ',
5050
flags: 'g'
5151
}
5252
},

0 commit comments

Comments
 (0)