Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/bundler-utoopack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"express-http-proxy": "^2.1.1"
},
"devDependencies": {
"@utoo/pack": "^0.0.1-alpha.56",
"@utoo/pack": "^0.0.1-alpha.57",
"father": "4.1.5"
},
"peerDependencies": {
"@utoo/pack": "^0.0.1-alpha.56"
"@utoo/pack": "^0.0.1-alpha.57"
},
"publishConfig": {
"access": "public"
Expand Down
11 changes: 2 additions & 9 deletions packages/preset-umi/src/features/tmpFiles/tmpFiles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,15 +748,8 @@ if (process.env.NODE_ENV === 'development') {
for (const plugin of allPlugins) {
const file = winPath(join(api.paths.absTmpPath, plugin, 'types.d.ts'));
if (existsSync(file)) {
// utoopack 类型导出需要添加 type 否则会 parse error
if (api.appData.bundler === 'utoopack') {
const noSuffixFile = file.replace(/\.d\.ts$/, '');
beforeExports.push(`export type * from '${noSuffixFile}';`);
} else {
// 带 .ts 后缀的声明文件 会导致声明失效
const noSuffixFile = file.replace(/\.ts$/, '');
beforeExports.push(`export * from '${noSuffixFile}';`);
}
const noSuffixFile = file.replace(/\.ts$/, '');
beforeExports.push(`export * from '${noSuffixFile}';`);
}
}
// plugins runtimeConfig.d.ts
Expand Down
61 changes: 35 additions & 26 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.