fix(build): mode env for "import" condition" (#1845)

* fix(build): mode env for "import" condition"

* another way

* yet another way
This commit is contained in:
Daishi Kato 2023-07-04 22:40:31 +09:00 committed by GitHub
parent 1a92e94d0a
commit f0d9d984bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ function createESMConfig(input, output) {
}
: {
'import.meta.env?.MODE':
'(import.meta.env && import.meta.env.MODE)',
'(import.meta.env ? import.meta.env.MODE : undefined)',
}),
// a workround for #829
'use-sync-external-store/shim/with-selector':