refactor(compiler)!: move component generation to core

This commit is contained in:
Rahim
2026-06-19 19:37:09 -07:00
parent b2c6b3489f
commit f64acdfd15
158 changed files with 2849 additions and 712 deletions
+7 -18
View File
@@ -13,24 +13,13 @@ const entries = Object.fromEntries(
const createConfig = (mode: PackageBuildMode): UserConfig => ({
...packageBuildConfig(mode, 'browser'),
entry: entries,
copy: [
{
from: 'src/**/*.css',
to: `dist/${mode}`,
flatten: false,
},
],
plugins: [
{
name: 'watch-css',
buildStart() {
const cssFiles = globSync('src/**/*.css');
for (const file of cssFiles) {
this.addWatchFile(file);
}
},
},
],
// copy: [
// {
// from: 'src/**/*.css',
// to: `dist/${mode}`,
// flatten: false,
// },
// ],
});
export default defineConfig(packageBuildModes.map((mode) => createConfig(mode)));