Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set legacy decorators version when experimentalDecorators enabled #189

Merged
merged 4 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Rslib will try to cover the common scenarios in the [integration test cases of M
| banner-footer | 🟢 | |
| buildType | 🟢 | |
| copy | 🟢 | |
| decorator | ⚪️ | |
| decorator | 🟢 | |
| define | 🟢 | |
| dts | 🟢 | |
| dts-composite | ⚪️ | |
Expand All @@ -26,21 +26,21 @@ Rslib will try to cover the common scenarios in the [integration test cases of M
| format | 🟡 | Support `cjs` and `esm`, `umd` still need to be tested |
| input | 🟢 | |
| jsx | ⚪️ | |
| metafile | ⚪️ | |
| metafile | ⚫️ | |
| minify | 🟢 | |
| platform | 🟢 | |
| redirect | ⚪️ | |
| resolve | 🟢 | |
| shims | 🟡 | Support shims `__filename` and `__dirname` in esm</br> `import.meta.url` in cjs need to be supported |
| sideEffects | ⚪️ | |
| sourceDir | ⚪️ | |
| sourceDir | 🟢 | |
| sourceMap | 🟢 | |
| splitting | ⚪️ | |
| style | ⚪️ | |
| target | 🟢 | |
| transformImport | 🟢 | |
| transformLodash | 🟢 | |
| tsconfig | ⚪️ | |
| tsconfigExtends | ⚪️ | |
| tsconfig | 🟢 | |
| tsconfigExtends | 🟢 | |
| umdGlobals | ⚪️ | |
| umdModuleName | ⚪️ | |
13 changes: 13 additions & 0 deletions e2e/cases/decorators/__fixtures__/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function enhancer(name: string) {
return function enhancer(target: any) {
target.prototype.name = name;
};
}
@enhancer('rslib')
export class Person {
version: string;

constructor() {
this.version = '1.0.0';
}
}
8 changes: 8 additions & 0 deletions e2e/cases/decorators/__fixtures__/tsconfig.decorators.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "@rslib/tsconfig/base",
"compilerOptions": {
"baseUrl": "./",
"experimentalDecorators": true
},
"include": ["src"]
}
7 changes: 7 additions & 0 deletions e2e/cases/decorators/__fixtures__/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@rslib/tsconfig/base",
"compilerOptions": {
"baseUrl": "./"
},
"include": ["src"]
}
Loading
Loading