From be4805c06bff863655706b810540bb79d5970c07 Mon Sep 17 00:00:00 2001 From: Andy Espagnolo Date: Wed, 17 Apr 2024 17:13:52 -0300 Subject: [PATCH] chore: edit vite rollup config --- package.json | 6 ++++-- scripts/prebuild.js | 2 +- vite.config.ts | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 24d36be..0fd0084 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,9 @@ }, "jest": { "watchman": false, - "setupFilesAfterEnv": ["/jest.setup.ts"], + "setupFilesAfterEnv": [ + "/jest.setup.ts" + ], "roots": [ "/src/" ], @@ -141,4 +143,4 @@ "*.{js,jsx,ts,tsx}": "eslint --cache --fix", "*.{js,jsx,ts,tsx,css,json}": "prettier --write" } -} +} \ No newline at end of file diff --git a/scripts/prebuild.js b/scripts/prebuild.js index 908c8b6..39eabe7 100644 --- a/scripts/prebuild.js +++ b/scripts/prebuild.js @@ -59,7 +59,7 @@ function getPublicUrls() { } } // localhost - console.log('Using empty pubic url') + console.log('Using empty public url') return { VITE_BASE_URL: '', } diff --git a/vite.config.ts b/vite.config.ts index a381d40..2366fe0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -54,6 +54,7 @@ export default defineConfig(({ command, mode }) => { }, rollupOptions: { plugins: [rollupNodePolyFill()], + external: ['redux-saga/effects'], }, sourcemap: true, },