-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hi-ogawa/chore-repro
chore: repro for vitejs/vite#17648
- Loading branch information
Showing
4 changed files
with
895 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import {foo} from "lib"; | ||
console.log(foo()); | ||
console.log(import.meta.env["VITE_CUSTOM"]); | ||
console.log(import.meta.env.VITE_CUSTOM); | ||
// console.log(import.meta.env["VITE_CUSTOM"]); | ||
// console.log(import.meta.env.VITE_CUSTOM); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import {createStore} from "zustand"; | ||
|
||
export const foo = () => { | ||
return createStore(); | ||
// https://github.com/pmndrs/zustand/blob/a56e76db5261291dcf9a88573dac58f67edb93db/rollup.config.js#L67-L70 | ||
console.log(import.meta.env ? import.meta.env.MODE : undefined); | ||
|
||
// this could be any "define" which is used in app mode but not in lib mode. | ||
console.log(process.env.TEST); | ||
}; |
Oops, something went wrong.