Addon-docs: Allow doc blocks to CJS imported

This commit is contained in:
Michael Shilman 2021-04-30 11:27:15 +08:00
parent 2821382a85
commit ff25b71b1a
3 changed files with 4 additions and 5 deletions

View File

@ -24,9 +24,9 @@
"url": "https://opencollective.com/storybook"
},
"license": "MIT",
"main": "dist/cjs/public_api.js",
"module": "dist/esm/public_api.js",
"types": "dist/ts3.9/public_api.d.ts",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/ts3.9/index.d.ts",
"typesVersions": {
"<3.8": {
"*": [

1
addons/docs/src/index.ts Normal file
View File

@ -0,0 +1 @@
export * from './blocks';

View File

@ -1,2 +0,0 @@
// make it work with --isolatedModules
export default {};