mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +08:00
chore: Changed exports and bundler.entries
This commit is contained in:
parent
21690ddd1c
commit
0734bffb1e
@ -23,8 +23,8 @@
|
||||
"license": "MIT",
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs",
|
||||
"require": "./dist/src/index.js",
|
||||
"import": "./dist/src/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
},
|
||||
"./preset": {
|
||||
@ -33,9 +33,9 @@
|
||||
"types": "./dist/preset.d.ts"
|
||||
},
|
||||
"./register": {
|
||||
"require": "./dist/register.js",
|
||||
"import": "./dist/register.mjs",
|
||||
"types": "./dist/register.d.ts"
|
||||
"require": "./dist/src/manager.js",
|
||||
"import": "./dist/src/manager.mjs",
|
||||
"types": "./dist/manager.d.ts"
|
||||
},
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
@ -87,7 +87,8 @@
|
||||
"bundler": {
|
||||
"entries": [
|
||||
"./src/index.ts",
|
||||
"./src/manager.tsx"
|
||||
"./src/manager.tsx",
|
||||
"preset.js"
|
||||
]
|
||||
},
|
||||
"gitHead": "82667a655108283aafc828427f00bb3590a334e5",
|
||||
|
@ -25,7 +25,7 @@ function webpack(webpackConfig = {}, options = {}) {
|
||||
}
|
||||
|
||||
function managerEntries(entry = []) {
|
||||
return [...entry, require.resolve('./dist/esm/manager')];
|
||||
return [...entry, require.resolve('./dist/manager')];
|
||||
}
|
||||
|
||||
module.exports = { webpack, managerEntries };
|
||||
|
Loading…
x
Reference in New Issue
Block a user