ci: add vite.config.js as an actual file
This commit is contained in:
parent
4669a13c49
commit
c97ce30c2e
|
@ -1 +0,0 @@
|
||||||
node_modules/presetter/generated/@lumeweb/kernel-discovery-irc/vite.config.js
|
|
|
@ -0,0 +1,30 @@
|
||||||
|
import { defineConfig } from "vite";
|
||||||
|
import optimizer from "vite-plugin-optimizer";
|
||||||
|
import inject from "@rollup/plugin-inject";
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
build: {
|
||||||
|
outDir: "lib",
|
||||||
|
lib: {
|
||||||
|
entry: "build/index.js",
|
||||||
|
name: "main",
|
||||||
|
formats: ["cjs"],
|
||||||
|
fileName: "index",
|
||||||
|
},
|
||||||
|
minify: false,
|
||||||
|
rollupOptions: { output: { inlineDynamicImports: true } },
|
||||||
|
},
|
||||||
|
resolve: {
|
||||||
|
dedupe: ["@lumeweb/libportal", "@lumeweb/libweb", "@lumeweb/libkernel"],
|
||||||
|
alias: { tls: "./build/net.js", net: "./build/net.js" },
|
||||||
|
},
|
||||||
|
plugins: [
|
||||||
|
optimizer({
|
||||||
|
"node-fetch":
|
||||||
|
"const e = undefined; export default e;export {e as Response, e as FormData, e as Blob};",
|
||||||
|
}),
|
||||||
|
inject({
|
||||||
|
Buffer: ["buffer", "Buffer"],
|
||||||
|
}),
|
||||||
|
],
|
||||||
|
});
|
Loading…
Reference in New Issue