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
// ./index.js import * as external from 'external'; console.log(`External has export "nonExisting": ${!!external.nonExisting}`);
Build as
esbuild index.js --bundle --outfile=out.js --external:external --format=esm
Results into
// index.js import { nonExisting } from "external"; console.log(`External has export "nonExisting": ${!!nonExisting}`);
Which has different runtime behavior than the original. It will fail importing instead of logging "External has export "nonExisting": false"
"External has export "nonExisting": false"
Uncaught SyntaxError: The requested module '...external' does not provide an export named 'nonExisting'
The text was updated successfully, but these errors were encountered:
44b2665
No branches or pull requests
Build as
Results into
Which has different runtime behavior than the original. It will fail importing instead of logging
"External has export "nonExisting": false"
The text was updated successfully, but these errors were encountered: