We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53af8ab commit 69abc64Copy full SHA for 69abc64
src/index.ts
@@ -302,7 +302,7 @@ export class Bundler {
302
...config.plugins.replace,
303
values: {
304
...Object.keys(env).reduce((res: Env, name) => {
305
- res[name] = JSON.stringify(env[name])
+ res[`process.env.${name}`] = JSON.stringify(env[name])
306
return res
307
}, {}),
308
...(config.plugins.replace && config.plugins.replace.values)
@@ -439,8 +439,9 @@ export class Bundler {
439
inputConfig: {
440
input: source.input,
441
plugins,
442
- external: Object.keys(config.globals || {})
443
- .filter(v => !/^[\.\/]/.test(v)),
+ external: Object.keys(config.globals || {}).filter(
+ v => !/^[\.\/]/.test(v)
444
+ ),
445
onwarn(warning) {
446
if (typeof warning === 'string') {
447
return logger.warn(warning)
0 commit comments