Skip to content

Commit

Permalink
fix(build): re-export createStore from index (#1661)
Browse files Browse the repository at this point in the history
* fix: re-export createStore from index

* fix: use vanilla.createStore instead of exports.vanilla.createStore
  • Loading branch information
hiendv authored Feb 28, 2023
1 parent de74f2e commit 0c153ca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 0c153ca

Please sign in to comment.