Skip to content

Commit

Permalink
chore: switch esbuild output format from iife to esm
Browse files Browse the repository at this point in the history
This setting currently blocks Berry from using ESM modules that use top-level await (e.g. ink).
  • Loading branch information
wojtekmaj authored Jan 7, 2025
1 parent 93a5664 commit f7d128d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .yarn/versions/f5873988.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
releases:
"@yarnpkg/builder": minor
"@yarnpkg/cli": minor

declined:
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-exec"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
2 changes: 1 addition & 1 deletion packages/yarnpkg-builder/sources/commands/build/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class BuildBundleCommand extends Command {
// Default extensions + .mjs
resolveExtensions: [`.tsx`, `.ts`, `.jsx`, `.mjs`, `.js`, `.css`, `.json`],
logLevel: `silent`,
format: `iife`,
format: `esm`,
platform: `node`,
plugins: [valLoader],
minify: !this.noMinify,
Expand Down

0 comments on commit f7d128d

Please sign in to comment.