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

Module Syntax #11

Open
thysultan opened this issue Dec 19, 2018 · 1 comment
Open

Module Syntax #11

thysultan opened this issue Dec 19, 2018 · 1 comment

Comments

@thysultan
Copy link

thysultan commented Dec 19, 2018

In the alternative section: Is "foo" in the following local to that module/file?

module "foo" {
  export default function() { };
}

// could these two be from any file?
import Foo from "foo";
// or
import("foo");

Related esdiscuss about inline modules: https://esdiscuss.org/topic/inline-es-modules

@bmeck
Copy link
Member

bmeck commented Dec 28, 2018

@thysultan that would be up to the alternative proposal for inline modules to decide. The alternative is just showing that this idea of references should work even with that alternative syntax. However, conflating inline modules and asset references might not be ideal since asset references do not necessarily just apply to modules.

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

2 participants