|
|
|
@ -8,11 +8,14 @@ export default defineConfig(({ mode }) => {
|
|
|
|
if (mode === 'lib') {
|
|
|
|
if (mode === 'lib') {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
plugins: [
|
|
|
|
plugins: [
|
|
|
|
cssInjectedByJsPlugin(),
|
|
|
|
cssInjectedByJsPlugin({
|
|
|
|
|
|
|
|
styleId: `${name}-style`,
|
|
|
|
|
|
|
|
topExecutionPriority: true
|
|
|
|
|
|
|
|
}),
|
|
|
|
{
|
|
|
|
{
|
|
|
|
...typescript({
|
|
|
|
...typescript({
|
|
|
|
tsconfig: './tsconfig.json',
|
|
|
|
tsconfig: './tsconfig.json',
|
|
|
|
include: ['./src/editor/**'],
|
|
|
|
include: ['./src/editor/**']
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
apply: 'build',
|
|
|
|
apply: 'build',
|
|
|
|
declaration: true,
|
|
|
|
declaration: true,
|
|
|
|
@ -40,4 +43,4 @@ export default defineConfig(({ mode }) => {
|
|
|
|
host: '0.0.0.0'
|
|
|
|
host: '0.0.0.0'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|