Skip to content

Commit

Permalink
fix plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Jan 14, 2025
1 parent 2fca698 commit c84c162
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions shared/web-components-vite-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,20 @@ export function useLitWebComponents(): PluginOption {
].flatMap((component) => {
return [
{
find: new RegExp(`^@vaadin/[^\/]+\/(src\/)?vaadin-${component}.js`),
replacement: `@vaadin/[^\/]+/$1vaadin-lit-${component}.js`
find: new RegExp(`^@vaadin/([^\/]+)\/vaadin-${component}.js`),
replacement: `@vaadin/$1/vaadin-lit-${component}.js`
},
{
find: new RegExp(`^@vaadin/([^\/]+)\/src/vaadin-${component}.js`),
replacement: `@vaadin/$1/src/vaadin-lit-${component}.js`
},
{
find: new RegExp(`^@vaadin/([^\/]+)\/theme/lumo/vaadin-${component}.js`),
replacement: `@vaadin/$1/theme/lumo/vaadin-lit-${component}.js`
},
{
find: new RegExp(`^@vaadin/([^\/]+)\/theme/material/vaadin-${component}.js`),
replacement: `@vaadin/$1/theme/material/vaadin-lit-${component}.js`
}
];
})
Expand Down

0 comments on commit c84c162

Please sign in to comment.