Skip to content

Commit

Permalink
chore: edit vite rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
andyesp committed Apr 17, 2024
1 parent 1f26f7d commit be4805c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
},
"jest": {
"watchman": false,
"setupFilesAfterEnv": ["<rootDir>/jest.setup.ts"],
"setupFilesAfterEnv": [
"<rootDir>/jest.setup.ts"
],
"roots": [
"<rootDir>/src/"
],
Expand Down Expand Up @@ -141,4 +143,4 @@
"*.{js,jsx,ts,tsx}": "eslint --cache --fix",
"*.{js,jsx,ts,tsx,css,json}": "prettier --write"
}
}
}
2 changes: 1 addition & 1 deletion scripts/prebuild.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function getPublicUrls() {
}
}
// localhost
console.log('Using empty pubic url')
console.log('Using empty public url')
return {
VITE_BASE_URL: '',
}
Expand Down
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export default defineConfig(({ command, mode }) => {
},
rollupOptions: {
plugins: [rollupNodePolyFill()],
external: ['redux-saga/effects'],
},
sourcemap: true,
},
Expand Down

0 comments on commit be4805c

Please sign in to comment.