-
Notifications
You must be signed in to change notification settings - Fork 348
Closed
Description
In the new v2.3.0-beta build, outExtension
was overridden with the build format:
react-hot-toast/tsup.config.ts
Lines 9 to 13 in 39c1bda
outExtension({ format }) { | |
return { | |
js: format === 'cjs' ? '.js' : `.${format}.js`, | |
}; | |
}, |
This is not compliant with esm. tsup emits with the .mjs
extension by default because packages with "type": "commonjs"
(all packages implicitly have this) must use the .mjs
extension for esm files according to Node's resolution. Bundlers may be more forgiving.
Metadata
Metadata
Assignees
Labels
No labels