Skip to content

Commit

Permalink
fix: unused code, import path
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonghakseo committed Jul 15, 2024
1 parent 7ef613c commit 3947527
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
20 changes: 0 additions & 20 deletions packages/vite-config/env.mjs
Original file line number Diff line number Diff line change
@@ -1,22 +1,2 @@
import react from '@vitejs/plugin-react-swc';
import { watchRebuildPlugin } from '@chrome-extension-boilerplate/hmr';

export const isDev = process.env.__DEV__ === 'true';
export const isProduction = !isDev;

export default {
base: '',
plugins: [react(), isDev && watchRebuildPlugin({ refresh: true })],
build: {
sourcemap: isDev,
minify: isProduction,
reportCompressedSize: isProduction,
emptyOutDir: true,
rollupOptions: {
external: ['chrome'],
},
},
define: {
'process.env.NODE_ENV': isDev ? `"development"` : `"production"`,
},
};
2 changes: 1 addition & 1 deletion packages/vite-config/index.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './env.mjs';
export * from 'packages/vite-config/withPageConfig.mjs';
export * from './withPageConfig.mjs';

0 comments on commit 3947527

Please sign in to comment.