mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 13:45:36 +03:00
a1ba6757e0
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. |
||
---|---|---|
.. | ||
babel | ||
expect | ||
utils |