@ngtools/webpack 15.0.2 → 15.1.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngtools/webpack",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.1.0-next.1",
|
|
4
4
|
"description": "Webpack plugin that AoT compiles your Angular components and modules.",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"typings": "src/index.d.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"homepage": "https://github.com/angular/angular-cli",
|
|
27
27
|
"dependencies": {},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@angular/compiler-cli": "^15.0.0",
|
|
29
|
+
"@angular/compiler-cli": "^15.0.0-next",
|
|
30
30
|
"typescript": "~4.8.2",
|
|
31
31
|
"webpack": "^5.54.0"
|
|
32
32
|
},
|
|
@@ -94,7 +94,7 @@ function replaceBootstrap(getTypeChecker) {
|
|
|
94
94
|
if (target.text === PLATFORM_BROWSER_DYNAMIC_NAME) {
|
|
95
95
|
if (!bootstrapNamespace) {
|
|
96
96
|
bootstrapNamespace = nodeFactory.createUniqueName('__NgCli_bootstrap_');
|
|
97
|
-
bootstrapImport = nodeFactory.createImportDeclaration(undefined,
|
|
97
|
+
bootstrapImport = nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(false, undefined, nodeFactory.createNamespaceImport(bootstrapNamespace)), nodeFactory.createStringLiteral('@angular/platform-browser'));
|
|
98
98
|
}
|
|
99
99
|
replacedNodes.push(target);
|
|
100
100
|
return nodeFactory.updateCallExpression(node, nodeFactory.createPropertyAccessExpression(bootstrapNamespace, 'platformBrowser'), node.typeArguments, node.arguments);
|
|
@@ -214,7 +214,7 @@ function createResourceImport(nodeFactory, url, resourceImportDeclarations, modu
|
|
|
214
214
|
}
|
|
215
215
|
else {
|
|
216
216
|
const importName = nodeFactory.createIdentifier(`__NG_CLI_RESOURCE__${resourceImportDeclarations.length}`);
|
|
217
|
-
resourceImportDeclarations.push(nodeFactory.createImportDeclaration(undefined,
|
|
217
|
+
resourceImportDeclarations.push(nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(false, importName, undefined), urlLiteral));
|
|
218
218
|
return importName;
|
|
219
219
|
}
|
|
220
220
|
}
|