mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-04 07:00:23 +00:00
- Configure babel plugins for TypeScript with allowDeclareFields option - Add module resolver for @ alias to src directory - Create custom babel plugin to stub Vue/CSS imports - Add browser globals polyfill using happy-dom for Node.js context - Update playwright.i18n.config.ts with babel configuration This enables collect-i18n tests to run with proper TypeScript and module transformations.
24 lines
374 B
JSON
24 lines
374 B
JSON
{
|
|
"presets": [
|
|
"@babel/preset-env",
|
|
[
|
|
"@babel/preset-typescript",
|
|
{
|
|
"allowDeclareFields": true,
|
|
"onlyRemoveTypeImports": true
|
|
}
|
|
]
|
|
],
|
|
"plugins": [
|
|
[
|
|
"babel-plugin-module-resolver",
|
|
{
|
|
"root": ["./"],
|
|
"alias": {
|
|
"@": "./src"
|
|
}
|
|
}
|
|
],
|
|
"@vue/babel-plugin-jsx"
|
|
]
|
|
} |