From 5d099bda123ac3e74651a142832d9acfe1613ab7 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Wed, 27 Mar 2024 16:53:42 +0530 Subject: [PATCH] fix: remove minify --- examples/prebuilt-react-integration/vite.config.js | 7 +++++++ scripts/build.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/examples/prebuilt-react-integration/vite.config.js b/examples/prebuilt-react-integration/vite.config.js index 14d7d98e40..13ec4d72f9 100644 --- a/examples/prebuilt-react-integration/vite.config.js +++ b/examples/prebuilt-react-integration/vite.config.js @@ -4,6 +4,13 @@ import react from '@vitejs/plugin-react-swc'; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], + build: { + rollupOptions: { + output: { + experimentalMinChunkSize: 200, + }, + }, + }, define: { 'process.env': {}, }, diff --git a/scripts/build.js b/scripts/build.js index a851b44e9a..f830439b4a 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -22,7 +22,7 @@ async function main() { target: 'es6', external, tsconfig: 'tsconfig.json', - minify: true, + minify: false, sourcemap: true, }; try {