* fix asset locations

* fix changeset
This commit is contained in:
pngwn 2024-08-14 17:52:16 +01:00 committed by GitHub
parent e1e7ad3add
commit 13010fdfd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 18 additions and 3 deletions

View File

@ -11,7 +11,7 @@
"@gradio/storybook": patch
"@gradio/video": patch
"@gradio/wasm": patch
"app": patch
"@gradio/app": patch
"gradio": patch
"website": patch
---

View File

@ -265,6 +265,7 @@ function resolve_svelte(enable) {
__dirname,
"..",
"..",
"..",
"gradio",
"templates",
"frontend",

View File

@ -348,6 +348,7 @@ export function resolve_svelte(enable: boolean): Plugin {
__dirname,
"..",
"..",
"..",
"gradio",
"templates",
"frontend",

View File

@ -7,8 +7,6 @@ import node from "@rollup/plugin-node-resolve";
import cjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
const output_svelte_dir = "../../gradio/templates/frontend/assets/svelte";
const onwarn = (warning, warn) => {
if (warning.plugin === "typescript") return;
if (warning.code === "CIRCULAR_DEPENDENCY") return;
@ -17,6 +15,21 @@ const onwarn = (warning, warn) => {
warn(warning);
};
const require = createRequire(import.meta.url);
const dir = require.resolve("./package.json");
const output_svelte_dir = join(
dir,
"..",
"..",
"..",
"gradio",
"templates",
"frontend",
"assets",
"svelte"
);
const plugins = [node({ preferBuiltins: true }), json(), cjs(), ts()];
export default [