Skip to content

Commit

Permalink
[Fix] Fix dev mode (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
psamusev authored Nov 12, 2024
1 parent 086afad commit 90fb6e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import EnvironmentPlugin from 'vite-plugin-environment';
// https://vitejs.dev/config/
export default ({ mode }) => {
const outputFormat = process.env.OUTPUT_FORMAT;
if (outputFormat !== 'iife' && outputFormat !== 'module') {
if (mode !== 'development' && outputFormat !== 'iife' && outputFormat !== 'module') {
process.exit(1);
}
return defineConfig({
Expand Down

0 comments on commit 90fb6e8

Please sign in to comment.