bosia 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/core/plugin.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bosia",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A fast, batteries-included fullstack framework — SSR · Svelte 5 Runes · Bun · ElysiaJS. File-based routing inspired by SvelteKit. No Node.js, no Vite, no adapters.",
|
|
6
6
|
"keywords": [
|
package/src/core/plugin.ts
CHANGED
|
@@ -126,6 +126,19 @@ export function makeBosiaPlugin(target: "browser" | "bun" = "bun") {
|
|
|
126
126
|
path: "tailwindcss",
|
|
127
127
|
namespace: "bosia-empty-css",
|
|
128
128
|
}));
|
|
129
|
+
// app.css is processed by Tailwind CLI into public/bosia-tw.css and
|
|
130
|
+
// loaded via <link> tag in HTML. User layouts often `import "../app.css"`
|
|
131
|
+
// for IDE/Tailwind tooling — bundle as JS no-op so Bun doesn't emit a
|
|
132
|
+
// CSS chunk per dynamic-imported route (identical content → output
|
|
133
|
+
// collision under splitting:true).
|
|
134
|
+
build.onResolve({ filter: /(?:^|.*\/)app\.css$/ }, () => ({
|
|
135
|
+
path: "app.css",
|
|
136
|
+
namespace: "bosia-empty-app-css",
|
|
137
|
+
}));
|
|
138
|
+
build.onLoad({ filter: /.*/, namespace: "bosia-empty-app-css" }, () => ({
|
|
139
|
+
contents: "",
|
|
140
|
+
loader: "js",
|
|
141
|
+
}));
|
|
129
142
|
build.onLoad({ filter: /.*/, namespace: "bosia-empty-css" }, () => ({
|
|
130
143
|
contents: "",
|
|
131
144
|
loader: "css",
|