Skip to content

Commit

Permalink
fix: import.meta.env fallback for build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jul 2, 2020
1 parent 4c21121 commit 7994d35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/build/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ export async function build(options: BuildConfig): Promise<BuildResult> {
'import.meta.env.MODE': JSON.stringify(mode),
'import.meta.env.DEV': String(mode === 'development'),
'import.meta.env.PROD': String(mode === 'production'),
'import.meta.env.': `({}).`,
'process.env.NODE_ENV': JSON.stringify(mode),
'process.env.': `({}).`,
'import.meta.hot': `false`
Expand Down

0 comments on commit 7994d35

Please sign in to comment.