-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(cli): Deno.emit supports bundling as IIFE #9291
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
cli/tests/compiler_api_test.ts
Outdated
assert(diagnostics); | ||
assertEquals(diagnostics.length, 0); | ||
assertEquals(Object.keys(files).length, 1); | ||
assert(files["deno:///bundle.js"].startsWith("function() {\n")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it start with (function() {\n
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I made a mistake.
I'll fix it and publish a new version. (fixer should be called after wrapping with iife, but it's not)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I published a new version of swc_bundler
.
Since this is a new feature (albeit for an unstable option) I don't think we should land this until 1.8. It should be relatively easy to rebase, so we can update the bundler from swc for it. |
cf5cfe5
to
c55cd07
Compare
c55cd07
to
2be3047
Compare
Closes #9204
Thanks @kdy1 for adding it to swc! Finally got around to adding it to Deno.