refactor(ct-angular): disable analog plugin as it breaks component registration
This commit is contained in:
parent
c27a034d8a
commit
994bf21288
|
|
@ -29,6 +29,6 @@
|
||||||
"@angular/cli": "~17.0.0",
|
"@angular/cli": "~17.0.0",
|
||||||
"@angular/compiler-cli": "^17.0.0",
|
"@angular/compiler-cli": "^17.0.0",
|
||||||
"typescript": "~5.2.0",
|
"typescript": "~5.2.0",
|
||||||
"vite": "^5.0.0"
|
"vite": "~5.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import analogVitePlugin from '@analogjs/vite-plugin-angular';
|
import angular from '@analogjs/vite-plugin-angular';
|
||||||
import { defineConfig, devices } from '@playwright/experimental-ct-angular';
|
import { defineConfig, devices } from '@playwright/experimental-ct-angular';
|
||||||
import { resolve } from 'path';
|
import { resolve } from 'path';
|
||||||
|
|
||||||
|
|
@ -26,9 +26,6 @@ export default defineConfig({
|
||||||
use: {
|
use: {
|
||||||
trace: 'on-first-retry',
|
trace: 'on-first-retry',
|
||||||
ctViteConfig: {
|
ctViteConfig: {
|
||||||
// plugins: [
|
|
||||||
// ...analogVitePlugin()
|
|
||||||
// ],
|
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
'@': resolve('./src'),
|
'@': resolve('./src'),
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
<button (click)="submit.emit('hello')">{{title}}</button>
|
|
||||||
|
|
@ -3,7 +3,9 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
@Component({
|
@Component({
|
||||||
standalone: true,
|
standalone: true,
|
||||||
selector: 'button-component',
|
selector: 'button-component',
|
||||||
templateUrl: './button.component.html',
|
template: `
|
||||||
|
<button (click)="submit.emit('hello')">{{title}}</button>
|
||||||
|
`
|
||||||
})
|
})
|
||||||
export class ButtonComponent {
|
export class ButtonComponent {
|
||||||
@Input() title!: string;
|
@Input() title!: string;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue