Skip to content

Angular 18 support #336

@ffoodd

Description

@ffoodd

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch angular-playground@11.0.0 for the project I'm working on, while upgrading from Angular 17 to Angular 18.

Here is the diff that solved my problem:

diff --git a/node_modules/angular-playground/dist/bin/build-angular-cli.js b/node_modules/angular-playground/dist/bin/build-angular-cli.js
index c9b670c..6d86437 100644
--- a/node_modules/angular-playground/dist/bin/build-angular-cli.js
+++ b/node_modules/angular-playground/dist/bin/build-angular-cli.js
@@ -26,7 +26,6 @@ function buildAngularCli(appName, enableServiceWorker, baseHref, maxBuffer) {
             `-c=production`,
             '--aot=false',
             `--base-href=${baseHref}`,
-            `--service-worker=${enableServiceWorker}`,
         ];
         (0, child_process_1.exec)(`ng build ${appName} ${flags.join(' ')}`, options, (err, stdout, stderr) => {
             if (err)

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions