Skip to content

Commit

Permalink
Enable Lit components import in shared config
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored and web-padawan committed Jan 13, 2025
1 parent 395dab8 commit 92144cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shared/shared-vite-config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { UserConfigFn, mergeConfig } from 'vite';
import { useLocalWebComponents } from './web-components-vite-plugin';
import { useLocalWebComponents, useLitWebComponents } from './web-components-vite-plugin';

export const mergeConfigs = (...configs: UserConfigFn[]) => {
return configs.reduce((acc, config) => mergeConfig(acc, config));
};

export const sharedConfig: UserConfigFn = (env) => ({
plugins: [
useLitWebComponents()

// Use local version of web-components, disabled by default.
// To use this, uncomment the lines below and change the path
// to your local web-components folder if needed (absolute or
Expand Down

0 comments on commit 92144cb

Please sign in to comment.