cordiverse / cordis

Meta-Framework for Modern Applications
MIT License
54 stars 7 forks source link

fix: cwd is not a function #11

Closed dragon-fish closed 3 months ago

dragon-fish commented 4 months ago

This commit fixes TypeError: process.cwd is not a function in browser environment

dragon-fish commented 4 months ago

globalThis.process may appear in browser environment. For example, it can be defined by legacy vite projects vite library projects:

5c0b3db378e2bf320a992ffd3287cdbf

We could be more cautious about calling process.cwd

dragon-fish commented 4 months ago

@shigma any updates here?

shigma commented 3 months ago

superseded by 6d7cfe6ad6c3247900d830d6ba785abc7998bd2f