fix(build): patch entry points zustand/shallow for CJS (#2128)

This commit is contained in:
Daishi Kato 2023-10-21 22:33:20 +09:00 committed by GitHub
parent 55ad02b375
commit 4abacb29af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ module.exports = function (args) {
createStore: 'vanilla.createStore',
},
vanilla: { default: 'vanilla', createStore: 'createStore' },
shallow: { default: 'shallow$1', shallow: 'shallow' },
shallow: { default: 'shallow', shallow: 'shallow$1' },
}[c],
}),
createESMConfig(`src/${c}.ts`, `dist/esm/${c}.js`),