We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modern Node.js APIs have first support for Web Standard URL objects, so it would be useful to have this interface in this plugin as well.
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import { viteStaticCopy } from "vite-plugin-static-copy"; // https://vitejs.dev/config/ export default defineConfig({ base: "/fml-web/", plugins: [ viteStaticCopy({ targets: [ { src: new URL("lib/foo.wasm", import.meta.url), dest: new URL(".", import.meta.url), }, ], }), react(), ], });
The text was updated successfully, but these errors were encountered:
While I think accepting URL objects is useful, I think there's multiple things that needs to be considered.
src
dest
Sorry, something went wrong.
No branches or pull requests
Modern Node.js APIs have first support for Web Standard URL objects, so it would be useful to have this interface in this plugin as well.
The text was updated successfully, but these errors were encountered: