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

[Bug] Dynamic import with template literals #51

Closed
vsn4ik opened this issue Mar 31, 2020 · 0 comments
Closed

[Bug] Dynamic import with template literals #51

vsn4ik opened this issue Mar 31, 2020 · 0 comments

Comments

@vsn4ik
Copy link

vsn4ik commented Mar 31, 2020

Dynamic import with template literals problem. Used esbuild-darwin-64@0.0.10.

// x.js
export const a = 1;

// test.js
(async () => {
  await import(`./x.js`);
})();

Run: esbuild --bundle test.js --outfile=build.js

Expected output:

Wrote to build.js

Actual output:

test.js:2:17: error: The argument to import() must be a string literal
@evanw evanw closed this as completed in d5b0e27 Apr 7, 2020
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