@ngtools/webpack 21.0.0-next.4 → 21.0.0-next.6

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": "21.0.0-next.4",
3
+ "version": "21.0.0-next.6",
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",
@@ -29,7 +29,7 @@
29
29
  "typescript": ">=5.9 <6.0",
30
30
  "webpack": "^5.54.0"
31
31
  },
32
- "packageManager": "pnpm@10.17.0",
32
+ "packageManager": "pnpm@10.17.1",
33
33
  "engines": {
34
34
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0",
35
35
  "npm": "^6.11.0 || ^7.5.6 || >=8.0.0",
@@ -106,7 +106,7 @@ function replaceBootstrap(getTypeChecker) {
106
106
  if (target.text === PLATFORM_BROWSER_DYNAMIC_NAME) {
107
107
  if (!bootstrapNamespace) {
108
108
  bootstrapNamespace = nodeFactory.createUniqueName('__NgCli_bootstrap_');
109
- bootstrapImport = nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(false, undefined, nodeFactory.createNamespaceImport(bootstrapNamespace)), nodeFactory.createStringLiteral('@angular/platform-browser'));
109
+ bootstrapImport = nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(undefined, undefined, nodeFactory.createNamespaceImport(bootstrapNamespace)), nodeFactory.createStringLiteral('@angular/platform-browser'));
110
110
  }
111
111
  replacedNodes.push(target);
112
112
  return nodeFactory.updateCallExpression(node, nodeFactory.createPropertyAccessExpression(bootstrapNamespace, 'platformBrowser'), node.typeArguments, node.arguments);
@@ -203,7 +203,7 @@ function createResourceImport(nodeFactory, url, resourceImportDeclarations, modu
203
203
  }
204
204
  else {
205
205
  const importName = nodeFactory.createIdentifier(`__NG_CLI_RESOURCE__${resourceImportDeclarations.length}`);
206
- resourceImportDeclarations.push(nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(false, importName, undefined), urlLiteral));
206
+ resourceImportDeclarations.push(nodeFactory.createImportDeclaration(undefined, nodeFactory.createImportClause(undefined, importName, undefined), urlLiteral));
207
207
  return importName;
208
208
  }
209
209
  }