Thank you for a nice plugin!
There appears to be an issue in the way configurations are referenced in runtimeEnv where envPrefix, needSourceMap, and isDevServer are initialized at the start of the function and then captured by the transform function. When the configResolved function is called, the configuration appears to not propagate correctly to transform.
I'd like to use the envPrefix setting but the current implementation does not seem to allow this.
Thank you for a nice plugin!
There appears to be an issue in the way configurations are referenced in
runtimeEnvwhereenvPrefix,needSourceMap, andisDevServerare initialized at the start of the function and then captured by thetransformfunction. When theconfigResolvedfunction is called, the configuration appears to not propagate correctly totransform.I'd like to use the
envPrefixsetting but the current implementation does not seem to allow this.