chore: Changed exports and bundler.entries

This commit is contained in:
Bryan Thomas 2022-10-14 10:29:28 -05:00
parent 21690ddd1c
commit 0734bffb1e
2 changed files with 8 additions and 7 deletions

View File

@ -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",

View File

@ -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 };