We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's consider these three files:
// three.ts export let value = "old" export function setValue() { value = "new"; }
// two.ts export { value, setValue } from "./three.ts";
// one.ts import { value, setValue } from "./two.ts"; setValue(); console.log(value)
If we run one.ts:
one.ts
$ deno run one.ts new
If we run bundle.js:
bundle.js
$ deno bundle one.ts bundle.js $ deno run bundle.js old
The result is different.
Bundled file:
// bundle.js let value = "old"; const value1 = value; function setValue() { value = "new"; } const setValue1 = setValue; setValue1(); console.log(value1);
Tested on:
The text was updated successfully, but these errors were encountered:
cc/ @kdy1
Sorry, something went wrong.
Add a test for denoland/deno#9450
cc2f84c
167cc9e
33a1140
Fixed in 1.8
No branches or pull requests
Let's consider these three files:
If we run
one.ts
:If we run
bundle.js
:The result is different.
Bundled file:
Tested on:
The text was updated successfully, but these errors were encountered: