Skip to content

Commit

Permalink
feat: add sourcemap && improve getUmiAlias
Browse files Browse the repository at this point in the history
  • Loading branch information
xc1427 committed Nov 20, 2023
1 parent 50005ae commit 6aa0881
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .fatherrc.base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import { defineConfig } from 'father';
export default defineConfig({
cjs: {
output: 'dist',
sourcemap: true,
},
});
4 changes: 3 additions & 1 deletion packages/umi/src/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ let service: Service;

export async function getUmiAlias() {
if (!service) {
service = new Service();
service = new Service({
defaultConfigFiles: [],
});
await service.run2({
name: 'setup',
args: { quiet: true },
Expand Down
2 changes: 2 additions & 0 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"esModuleInterop": true,
"module": "commonjs",
"moduleResolution": "node",
Expand Down

0 comments on commit 6aa0881

Please sign in to comment.