fix assets bundling
This commit is contained in:
2026-05-01 00:58:46 +02:00
parent 2a6c10b662
commit ec9bb08869
3 changed files with 13 additions and 11 deletions
+2 -1
View File
@@ -1,7 +1,8 @@
{ {
"name": "@avocadi/ui", "name": "@avocadi/ui",
"type": "module", "type": "module",
"version": "0.2.7", "version": "0.2.8",
"description": "ui elements for avocadi",
"private": false, "private": false,
"files": [ "files": [
"dist" "dist"
+2 -2
View File
@@ -1,7 +1,7 @@
import { useSound } from "use-sound"; import { useSound } from "use-sound";
import z from "zod"; import z from "zod";
import soundSpriteButtons from "@/assets/sounds/762132__ienba__ui-buttons.wav"; import soundSpriteButtons from "../assets/sounds/762132__ienba__ui-buttons.wav";
import soundSprite from "@/assets/sounds/842498__newlocknew__uimvmt_game-user-interface-sound-set.mp3"; import soundSprite from "../assets/sounds/842498__newlocknew__uimvmt_game-user-interface-sound-set.mp3";
const UiSoundSetSprites = z.enum([ const UiSoundSetSprites = z.enum([
"smooth1", "smooth1",
+9 -8
View File
@@ -1,4 +1,3 @@
import url from "@rollup/plugin-url";
import { defineConfig } from "tsdown"; import { defineConfig } from "tsdown";
export default defineConfig({ export default defineConfig({
@@ -10,14 +9,16 @@ export default defineConfig({
from: "./src/styles/*.css", from: "./src/styles/*.css",
to: "./dist", to: "./dist",
}, },
{
from: "./src/assets/**/*",
to: "./dist/assets",
},
], ],
platform: "browser", platform: "browser",
dts: true, dts: true,
exports: false, exports: true,
plugins: [ deps: {
url({ neverBundle: [/\.mp3$/, /\.wav$/],
include: ["**/*.mp3", "**/*.wav"], },
limit: 8192, plugins: [],
}),
],
}); });