Skip to content

Commit

Permalink
fix(vite): update config to use cjs extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao authored Jul 6, 2022
1 parent 4524b9c commit a76ead9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# [1.0.0-beta.3](https://github.com/sws2apps/react-sw-helper/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2022-07-06)


### Bug Fixes

* **component:** vite build issue with process.env.NODE_ENV ([b316b44](https://github.com/sws2apps/react-sw-helper/commit/b316b449ad37ea785f0afa9f6ecb1b74dfaeddd6))
- **component:** vite build issue with process.env.NODE_ENV ([b316b44](https://github.com/sws2apps/react-sw-helper/commit/b316b449ad37ea785f0afa9f6ecb1b74dfaeddd6))

# [1.0.0-beta.2](https://github.com/sws2apps/react-sw-helper/compare/v1.0.0-beta.1...v1.0.0-beta.2) (2022-07-06)

Expand Down
3 changes: 0 additions & 3 deletions vite.config.js → vite.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
define: {
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
},
build: {
lib: {
entry: path.resolve(__dirname, 'src/lib/index.jsx'),
Expand Down

0 comments on commit a76ead9

Please sign in to comment.