feat(bundle, unstable): bundling backed by esbuild (#29470)
Some checks are pending
ci / pre-build (push) Waiting to run
ci / test debug linux-aarch64 (push) Blocked by required conditions
ci / test release linux-aarch64 (push) Blocked by required conditions
ci / test debug macos-aarch64 (push) Blocked by required conditions
ci / test release macos-aarch64 (push) Blocked by required conditions
ci / bench release linux-x86_64 (push) Blocked by required conditions
ci / lint debug linux-x86_64 (push) Blocked by required conditions
ci / lint debug macos-x86_64 (push) Blocked by required conditions
ci / lint debug windows-x86_64 (push) Blocked by required conditions
ci / test debug linux-x86_64 (push) Blocked by required conditions
ci / test release linux-x86_64 (push) Blocked by required conditions
ci / test debug macos-x86_64 (push) Blocked by required conditions
ci / test release macos-x86_64 (push) Blocked by required conditions
ci / test debug windows-x86_64 (push) Blocked by required conditions
ci / test release windows-x86_64 (push) Blocked by required conditions
ci / build wasm32 (push) Blocked by required conditions
ci / publish canary (push) Blocked by required conditions

todo:
- [ ] cleanup cli, decide what flags we want to commit to
- [x] decide what to do about node addons - (you can mark them external
via `--external`)
- [x] move `esbuild_rs` to the `denoland` org
- [x] figure out the dynamic require issue
- [x] figure out how to test this
- [x] clean up / revert all the random changes
This commit is contained in:
Nathan Whitaker 2025-06-07 12:20:10 -07:00 committed by GitHub
parent 1323aca15e
commit 7a837f9fdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 1548 additions and 156 deletions

View file

@ -817,8 +817,10 @@ pub async fn run(
pkg_json_resolver.clone(),
sys.clone(),
));
let node_code_translator =
Arc::new(NodeCodeTranslator::new(cjs_module_export_analyzer));
let node_code_translator = Arc::new(NodeCodeTranslator::new(
cjs_module_export_analyzer,
node_resolver::analyze::NodeCodeTranslatorMode::ModuleLoader,
));
let workspace_resolver = {
let import_map = match metadata.workspace_resolver.import_map {
Some(import_map) => Some(