Skip to content

Commit

Permalink
feat(umi): service support custom param (#9608)
Browse files Browse the repository at this point in the history
  • Loading branch information
xierenyuan authored Oct 25, 2022
1 parent 1be4644 commit 2492a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/umi/src/service/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class Service extends CoreService {
...opts,
env: process.env.NODE_ENV,
cwd,
defaultConfigFiles: DEFAULT_CONFIG_FILES,
frameworkName: FRAMEWORK_NAME,
defaultConfigFiles: opts?.defaultConfigFiles || DEFAULT_CONFIG_FILES,
frameworkName: opts?.frameworkName || FRAMEWORK_NAME,
presets: [require.resolve('@umijs/preset-umi'), ...(opts?.presets || [])],
plugins: [
existsSync(join(cwd, 'plugin.ts')) && join(cwd, 'plugin.ts'),
Expand Down

0 comments on commit 2492a58

Please sign in to comment.