Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(umi): export deps that bigfish depend on (#9584)
* feat(umi): export deps that bigfish depend on * refactor(umi): add deps to publish files
- Loading branch information
1 parent
fa3f62a
commit 47cbe09
Showing
3 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import babelCodeFrame from '@umijs/deps/compiled/babel/code-frame'; | ||
import generator from '@umijs/deps/compiled/babel/generator'; | ||
import babelTemplate, { | ||
TemplateBuilder, | ||
TemplateBuilderOptions, | ||
} from '@umijs/deps/compiled/babel/template'; | ||
|
||
// ref: https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require | ||
import chalk = require('@umijs/deps/compiled/chalk'); | ||
import resolveCwd = require('@umijs/deps/compiled/resolve-cwd'); | ||
import express = require('@umijs/deps/compiled/express'); | ||
|
||
export type { | ||
TemplateBuilder as BabelTemplateBuilder, | ||
TemplateBuilderOptions as BabelTemplateBuilderOptions, | ||
}; | ||
export { babelCodeFrame, babelTemplate, chalk, resolveCwd, generator, express }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
babelCodeFrame: require('@umijs/deps/compiled/babel/code-frame'), | ||
babelTemplate: require('@umijs/deps/compiled/babel/template'), | ||
chalk: require('@umijs/deps/compiled/chalk'), | ||
resolveCwd: require('@umijs/deps/compiled/resolve-cwd'), | ||
generate: require('@umijs/deps/compiled/babel/generator'), | ||
express: require('@umijs/deps/compiled/express'), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters