Unverified Commit 29b68491 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix broken import/export mappings in npm package



Remove hash: false from the second tsdown build configuration (tests)
to prevent test chunk files from overwriting the main package chunks.

When both builds used hash: false, they generated chunks with the same
names (e.g., types.js). The second build overwrote the first build's
chunks, causing import/export mismatches at runtime with errors like:
"The requested module '../types.js' does not provide an export named 'i'"

This was a regression introduced in version 1.6.14.

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent 42cfe80d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,10 @@ Version 1.6.15

To be released.

 -  Fixed a bug where the npm package failed to load at runtime with an error
    like `SyntaxError: The requested module '../types.js' does not provide an
    export named 'i'`.  This was a regression introduced in version 1.6.14.


Version 1.6.14
--------------
+0 −1
Original line number Diff line number Diff line
@@ -37,7 +37,6 @@ export default [
        )
        .map((f) => f.replace(sep, "/")),
    ],
    hash: false,
    dts: true,
    external: [/^node:/],
    inputOptions: {