resolve issue with missing vite-plugin-node-polyfills
add LibreJS licenses to all demo JS split browser build from node build add copyright info to license files update to use yarn v4.13.0 update to v0.9.2
This commit is contained in:
@@ -6,16 +6,15 @@ import { nodePolyfills } from "vite-plugin-node-polyfills";
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
/* Only used for development, does not affect build */
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
dts({ exclude: ["**/__tests__/*.*"] }),
|
||||
nodePolyfills({
|
||||
// Specify which polyfills to include (optional, but recommended for bundle size)
|
||||
include: ["buffer"], // Only polyfill 'buffer' (add others like 'process' if needed)
|
||||
|
||||
// Configure global variables (e.g., expose Buffer to window)
|
||||
include: ["buffer"],
|
||||
globals: {
|
||||
Buffer: true, // Expose Buffer as a global variable (optional but useful for some cases)
|
||||
Buffer: true,
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user