Skip to content

Commit

Permalink
feat: process.env.NODE_ENV tree-shaking for @vue/* deps
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Feb 18, 2022
1 parent a742874 commit 6addfcd
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require('esbuild').build({
format: 'cjs',
platform: 'node',
tsconfig: '../../tsconfig.build.json',
define: { 'process.env.NODE_ENV': '"production"' },
minify: process.argv.includes('--minify'),
watch: process.argv.includes('--watch'),
plugins: [{
Expand Down

0 comments on commit 6addfcd

Please sign in to comment.