diff --git a/vite.config.ts b/vite.config.ts index 11c92b5..432d941 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -8,11 +8,14 @@ export default defineConfig(({ mode }) => { if (mode === 'lib') { return { plugins: [ - cssInjectedByJsPlugin(), + cssInjectedByJsPlugin({ + styleId: `${name}-style`, + topExecutionPriority: true + }), { ...typescript({ tsconfig: './tsconfig.json', - include: ['./src/editor/**'], + include: ['./src/editor/**'] }), apply: 'build', declaration: true, @@ -40,4 +43,4 @@ export default defineConfig(({ mode }) => { host: '0.0.0.0' } } -}) \ No newline at end of file +})