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