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

Standard Bundler is unable to handle mutable exports #39

Open
Protryon opened this issue Oct 25, 2018 · 0 comments
Open

Standard Bundler is unable to handle mutable exports #39

Protryon opened this issue Oct 25, 2018 · 0 comments

Comments

@Protryon
Copy link
Contributor

Given the modules:

// renaming.js
import {x, setX} from '/root/renaming_dep.js';
var tempX = x;
setX(10);
var result = tempX + x;

//renaming_dep.js
export var x = 5;
export function setX(y) {
    x = y;
}

The standard bundler does not provide the correct output of 15 for the value of result in renaming.js, as expected by the spec, or other implementations.

Module piercing does not have this issue.

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

No branches or pull requests

1 participant