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

What about dynamic specifiers? #4

Open
ljharb opened this issue Nov 14, 2018 · 3 comments
Open

What about dynamic specifiers? #4

ljharb opened this issue Nov 14, 2018 · 3 comments

Comments

@ljharb
Copy link
Member

ljharb commented Nov 14, 2018

If i wanted to dynamically (ie, not a static specifier) get an asset reference to something I'd otherwise use import() with, how do i do that?

@ljharb
Copy link
Member Author

ljharb commented Nov 14, 2018

I just found https://github.com/sebmarkbage/ecmascript-asset-references#dynamic-asset-resolution - it seems like the static and dynamic forms should mirror each other, just like import vs import()?

@sebmarkbage
Copy link
Collaborator

Yea. Except it won’t work without a keyword. So maybe import asset x from “x” and import.asset(“x”)?

@ljharb
Copy link
Member Author

ljharb commented Nov 14, 2018

Sure - or import.asset x from 'x' and import.asset('x'), and then it's even closer?

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