Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(npm): recursive translation of reexports, remove window global in node code #15806

Merged
merged 6 commits into from
Sep 8, 2022

Conversation

bartlomieju
Copy link
Member

@bartlomieju bartlomieju commented Sep 7, 2022

Closes #15691
Closes #15817

cli/node/mod.rs Outdated Show resolved Hide resolved
cli/node/mod.rs Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
import { getEnv } from "npm:@denotest/env-var-re-export";

console.log(getEnv());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now works the same as node:

> $env:NODE_ENV="" ; node file.mjs
dev
V:\scratch-npm
> $env:NODE_ENV="production" ; node file.mjs
prod

@dsherret dsherret changed the title fix(npm): recursive translation of reexports, remove window variable in CJS fix(npm): recursive translation of reexports, remove window global in node code Sep 7, 2022
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants