Skip to content

Commit d7dbe54

Browse files
committed
Fixed the import statement so webpack doesnt show an error
1 parent 976158f commit d7dbe54

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
@@ -43,8 +43,8 @@ export function getWebpackCommonConfig(projectRoot: string, sourceDir: string) {
4343
test: /(systemjs_component_resolver|system_js_ng_module_factory_loader)\.js$/,
4444
loader: 'string-replace-loader',
4545
query: {
46-
search: '(lang_1(.*[\\n\\r]+\\s*\\.|\\.))?(global(.*[\\n\\r]+\\s*\\.|\\.))?(System|SystemJS)(.*[\\n\\r]+\\s*\\.|\\.)import',
47-
replace: 'System.import',
46+
search: '(lang_1(.*[\\n\\r]+\\s*\\.|\\.))?(global(.*[\\n\\r]+\\s*\\.|\\.))?(System|SystemJS)(.*[\\n\\r]+\\s*\\.|\\.)import\\(',
47+
replace: 'System.import("" + ',
4848
flags: 'g'
4949
}
5050
},

0 commit comments

Comments
 (0)