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
[email protected]
"use strict";
banner
Describe the bug
Starting in [email protected], esbuild inserts the "use strict"; directive before the configured banner.
Ref yarnpkg/berry#4732
To Reproduce
docker run --rm -it node:16.16.0 bash cd $(mktemp -d) yarn init -2 yarn set version 3.2.2 yarn add [email protected] printf '{"compilerOptions": {"strict": true}}' > tsconfig.json printf "console.log(42)" > foo.js yarn esbuild --banner:js='#!/usr/bin/env node' ./foo.js | node
The text was updated successfully, but these errors were encountered:
Ah ok, I can make this work. FWIW the current way to use a hashbang is to put it in the entry point source file.
Sorry, something went wrong.
6d4f902
No branches or pull requests
Describe the bug
Starting in
[email protected]
, esbuild inserts the"use strict";
directive before the configuredbanner
.Ref yarnpkg/berry#4732
To Reproduce
The text was updated successfully, but these errors were encountered: