Skip to content

Commit

Permalink
feat(create-rsbuild): adds decorator configs to lit-html templates (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexUXUI authored Sep 21, 2024
1 parent 777d330 commit 41e7587
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions examples/lit/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ export default defineConfig({
html: {
template: './src/index.html',
},
source: {
decorators: {
version: 'legacy',
},
},
});
5 changes: 5 additions & 0 deletions packages/create-rsbuild/template-lit-js/rsbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ export default defineConfig({
html: {
template: './src/index.html',
},
source: {
decorators: {
version: 'legacy',
},
},
});
5 changes: 5 additions & 0 deletions packages/create-rsbuild/template-lit-ts/rsbuild.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,9 @@ export default defineConfig({
html: {
template: './src/index.html',
},
source: {
decorators: {
version: 'legacy',
},
},
});
3 changes: 2 additions & 1 deletion packages/create-rsbuild/template-lit-ts/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"resolveJsonModule": true,
"moduleResolution": "bundler",
"useDefineForClassFields": true,
"allowImportingTsExtensions": true
"allowImportingTsExtensions": true,
"experimentalDecorators": true
},
"include": ["src"]
}

0 comments on commit 41e7587

Please sign in to comment.