Max Schmitt
2b2a57abad
chore: enable @babel/plugin-syntax-import-attributes all the time ( #32713 )
2024-09-19 16:51:35 +02:00
Max Schmitt
48030a4eff
test: fix test expecations after Node.js 22.9.0 ( #32695 )
2024-09-19 10:52:29 +02:00
Pavel Feldman
96b2247e28
chore: allow marking scripts as external for transform ( #23449 )
...
Fixes https://github.com/microsoft/playwright/issues/22874
2023-06-01 20:28:49 -07:00
Max Schmitt
0c032eb7be
chore: do not read browserslist file ( #23127 )
...
Fixes https://github.com/microsoft/playwright/issues/23125
2023-05-18 18:11:08 +02:00
Max Schmitt
e621e52f89
chore: support TypeScript 5 in TS transformer ( #21925 )
...
Fixes https://github.com/microsoft/playwright/issues/21900
2023-03-23 18:07:02 +01:00
Max Schmitt
4f43db686d
test: class properties with |this| don't work anymore ( #21796 )
...
https://github.com/microsoft/playwright/issues/21794
2023-03-20 16:38:51 +01:00
Max Schmitt
d641caeb6a
Revert "feat(typescript): allow declare
for class properties ( #21281 )" ( #21805 )
...
This reverts commit a1ba6757e0f786c51967a9419699ffb327af41aa.
https://github.com/microsoft/playwright/issues/21794
2023-03-20 16:37:20 +01:00
Dmitry Gozman
a1ba6757e0
feat(typescript): allow declare
for class properties ( #21281 )
...
This enables `allowDeclareFields` flag that allows code like:
```ts
class Foo {
declare prop: string;
}
```
Declaring is a workaround for inheritance vs property initialization
issues.
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-7.html#the-usedefineforclassfields-flag-and-the-declare-property-modifier
For `allowDeclareFields` to work, we have to run
plugin-transform-typescript before plugin-proposal-class-properties and
few others, so this change migrates from preset-typescript that always
runs last to individual plugin-transform-typescript, and reorders some
plugins.
References #21119 .
2023-03-01 16:43:17 -08:00
Dmitry Gozman
91da67fab1
test: remove magic headers in ttest ( #20867 )
...
Instead, explicitly import from '@playwright/test'.
2023-02-14 19:20:56 -08:00
Pavel Feldman
9440f52b88
feat(ct): support cra w/ .js ( #14326 )
2022-05-24 19:43:28 -07:00
Ross Wollman
8a6b640fca
test: mark enum babel test as failing ( #13282 )
2022-04-04 12:49:39 -07:00
Ross Wollman
3636d8548f
chore: fix lint ( #13279 )
2022-04-03 21:22:47 -07:00
Ross Wollman
014deed913
test: repro enums in tsx undefined ( #13272 )
...
The enums imported from the .tsx file are ending up as "undefined";
from the .ts file they are defined.
Repro for #13265 .
2022-04-03 21:12:00 -07:00
Pavel Feldman
96b5831a49
chore: add support private methods in TS ( #12051 )
2022-02-11 14:46:49 -08:00