mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix(vanilla,shallow): default export regression in CJS (#1531)
* fix(shallow): default export regression in CJS * add vanilla
This commit is contained in:
parent
2274eb90b2
commit
4c5cddc9c6
@ -174,7 +174,7 @@ module.exports = function (args) {
|
||||
return [
|
||||
...(c === 'index' ? [createDeclarationConfig(`src/${c}.ts`, 'dist')] : []),
|
||||
createCommonJSConfig(`src/${c}.ts`, `dist/${c}`, {
|
||||
addModuleExport: c === 'index',
|
||||
addModuleExport: ['index', 'vanilla', 'shallow'].includes(c),
|
||||
}),
|
||||
createESMConfig(`src/${c}.ts`, `dist/esm/${c}.js`),
|
||||
createESMConfig(`src/${c}.ts`, `dist/esm/${c}.mjs`),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user