Files
bun.sh/test/regression/issue
Claude Bot 931b584820 feat: support WebAssembly import attributes with type "webassembly"
Changes bun to properly support WebAssembly imports using the web standard
"webassembly" type attribute instead of the non-standard "wasm" type.

## Changes

- Modified js_printer.zig to output `type: "webassembly"` for .wasm files
  (following web standards)
- Added "webassembly" -> .wasm mapping to options.zig to support both forms
- Restructured import attribute handling to always preserve web standard
  attributes (css, json, webassembly) while only preserving Bun-specific
  attributes when on Bun platform
- Added comprehensive tests for WebAssembly import attribute behavior

## Before
```javascript
import module from './module.wasm' with { type: 'webassembly' };
// Transpiled to:
import module from './module.wasm'; //  attribute stripped
```

## After
```javascript
import module from './module.wasm' with { type: 'webassembly' };
// Transpiled to:
import module from './module.wasm' with { type: 'webassembly' }; //  preserved
```

This ensures full compliance with WebAssembly ES module integration spec
while maintaining backward compatibility.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-15 00:35:15 +00:00
..
2025-08-06 06:44:46 -07:00
2025-01-28 17:23:57 -08:00
2025-06-03 13:23:12 -07:00
2025-06-03 23:41:37 -07:00
2025-01-17 22:08:07 -08:00
2024-06-14 01:50:36 -07:00
2024-09-24 22:46:18 -07:00
2025-03-03 21:38:05 -08:00
2025-05-26 21:18:22 -07:00
2025-07-03 01:06:22 -07:00
2025-07-23 22:31:42 -07:00
2025-07-20 23:02:10 -07:00