mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: umd build so it can be used in browser (#7349)
* fix: umd build so it can be used in browser * fix lint * increase size limit * update changelog * use json.stringify for env preact variable so its accessible as string * update changelog
This commit is contained in:
parent
dd220bcaea
commit
f299514e44
5 changed files with 15 additions and 6 deletions
|
@ -39,7 +39,7 @@ Since Vite removes env variables by default, you can update the vite config to e
|
|||
|
||||
```
|
||||
define: {
|
||||
"process.env.IS_PREACT": process.env.IS_PREACT,
|
||||
"process.env.IS_PREACT": JSON.stringify("true"),
|
||||
},
|
||||
```
|
||||
|
||||
|
|
|
@ -93,7 +93,7 @@ Since Vite removes env variables by default, you can update the vite config to e
|
|||
|
||||
```
|
||||
define: {
|
||||
"process.env.IS_PREACT": process.env.IS_PREACT,
|
||||
"process.env.IS_PREACT": JSON.stringify("true"),
|
||||
},
|
||||
```
|
||||
:::
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue