mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
fix(build): re-export createStore from index (#1661)
* fix: re-export createStore from index * fix: use vanilla.createStore instead of exports.vanilla.createStore
This commit is contained in:
parent
de74f2e32d
commit
0c153cac18
@ -193,7 +193,12 @@ module.exports = function (args) {
|
||||
...(c === 'index' ? [createDeclarationConfig(`src/${c}.ts`, 'dist')] : []),
|
||||
createCommonJSConfig(`src/${c}.ts`, `dist/${c}`, {
|
||||
addModuleExport: {
|
||||
index: { default: 'react', create: 'create', useStore: 'useStore' },
|
||||
index: {
|
||||
default: 'react',
|
||||
create: 'create',
|
||||
useStore: 'useStore',
|
||||
createStore: 'vanilla.createStore',
|
||||
},
|
||||
vanilla: { default: 'vanilla', createStore: 'createStore' },
|
||||
shallow: { default: 'shallow$1', shallow: 'shallow' },
|
||||
}[c],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user