Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changelog.d/9630-template-esm-detection.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### Fixed

- **Ambiguous `.js` files now recognize module exports after complex template
interpolations (#9608).** Perry now uses SWC's program parser to find real
top-level module items instead of maintaining a partial byte scanner, so
nested templates, escaped backticks, regex character classes, comments,
strings, and division no longer hide a trailing export. Genuine CommonJS
inputs retain sloppy Script semantics.
Loading
Loading