Skip to content

Commit 2152afa

Browse files
committed
fix: plugin.default is not a function
1 parent 657d20b commit 2152afa

File tree

14 files changed

+1076
-828
lines changed

14 files changed

+1076
-828
lines changed

ct-angular/.browserslistrc

Lines changed: 0 additions & 20 deletions
This file was deleted.

ct-angular/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ct-angular
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.2.6.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 15.0.0.
44

55
## Development server
66

ct-angular/angular.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,12 @@
1616
"outputPath": "dist/ct-angular",
1717
"index": "src/index.html",
1818
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
19+
"polyfills": [
20+
"zone.js"
21+
],
2022
"tsConfig": "tsconfig.app.json",
2123
"assets": [
24+
"src/assets/favicon.ico",
2225
"src/assets"
2326
],
2427
"styles": [
@@ -40,12 +43,6 @@
4043
"maximumError": "4kb"
4144
}
4245
],
43-
"fileReplacements": [
44-
{
45-
"replace": "src/environments/environment.ts",
46-
"with": "src/environments/environment.prod.ts"
47-
}
48-
],
4946
"outputHashing": "all"
5047
},
5148
"development": {

ct-angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@
1818
"@angular/platform-browser": "^15.1.0",
1919
"@angular/platform-browser-dynamic": "^15.1.0",
2020
"@angular/router": "^15.1.0",
21-
"rxjs": "~7.5.0",
21+
"rxjs": "~7.8.0",
2222
"tslib": "^2.3.0",
23-
"zone.js": "~0.11.4"
23+
"zone.js": "~0.12.0"
2424
},
2525
"devDependencies": {
2626
"@angular-devkit/build-angular": "^15.1.0",
2727
"@angular/cli": "~15.1.0",
2828
"@angular/compiler-cli": "^15.1.0",
2929
"@playwright/test": "1.34.3",
30-
"@sand4rt/experimental-ct-angular": "*",
31-
"typescript": "~4.9.0"
30+
"@sand4rt/experimental-ct-angular": "workspace:*",
31+
"typescript": "~4.9.4"
3232
}
3333
}

ct-angular/src/environments/environment.prod.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

ct-angular/src/environments/environment.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

ct-angular/src/main.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
import { enableProdMode } from '@angular/core';
21
import { bootstrapApplication } from '@angular/platform-browser';
32
import { provideRouter } from '@angular/router';
43
import { AppComponent } from '@/app.component';
5-
import { environment } from '@/environments/environment';
64
import { routes } from '@/router';
75

8-
if (environment.production) {
9-
enableProdMode();
10-
}
11-
126
bootstrapApplication(AppComponent, {
137
providers: [
148
provideRouter(routes)

ct-angular/src/polyfills.ts

Lines changed: 0 additions & 53 deletions
This file was deleted.

ct-angular/tsconfig.app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
12
{
23
"extends": "./tsconfig.json",
34
"compilerOptions": {
45
"outDir": "./out-tsc/app",
56
"types": []
67
},
78
"files": [
8-
"src/main.ts",
9-
"src/polyfills.ts"
9+
"src/main.ts"
1010
],
1111
"include": [
1212
"src/**/*.d.ts"

ct-angular/tsconfig.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
12
{
23
"compileOnSave": false,
34
"compilerOptions": {
@@ -15,10 +16,11 @@
1516
"experimentalDecorators": true,
1617
"moduleResolution": "node",
1718
"importHelpers": true,
18-
"target": "es2020",
19-
"module": "es2020",
19+
"target": "ES2022",
20+
"module": "ES2022",
21+
"useDefineForClassFields": false,
2022
"lib": [
21-
"es2020",
23+
"ES2022",
2224
"dom"
2325
],
2426
"paths": {

0 commit comments

Comments
 (0)