Open insidewhy opened 5 months ago
By replacing process.env
with import.meta.env
in the source I was able to get this working
I was building my extension with lib.formats: ['es']
, switching 'es'
to 'cjs'
fixed it
@insidewhy, Thank you for posting this issue.
You are right. The package is not using vite's env vairables. It makes more sense to use it. I will re-open this issue and work on it.
Using
build.lib
to produce my output, there's two lines in the produced code that prevent the code from running:Not sure why this is here, it doesn't do anything.
I think vite uses
import.meta
now instead ofprocess.env
for stuff like this