-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: optimize generator bundle (#4838)
- Loading branch information
Showing
50 changed files
with
573 additions
and
434 deletions.
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,34 @@ | ||
--- | ||
'@modern-js/module-test-generator': patch | ||
'@modern-js/tailwindcss-generator': patch | ||
'@modern-js/dependence-generator': patch | ||
'@modern-js/changeset-generator': patch | ||
'@modern-js/generator-generator': patch | ||
'@modern-js/router-v5-generator': patch | ||
'@modern-js/storybook-generator': patch | ||
'@modern-js/monorepo-generator': patch | ||
'@modern-js/packages-generator': patch | ||
'@modern-js/upgrade-generator': patch | ||
'@modern-js/module-generator': patch | ||
'@modern-js/rspack-generator': patch | ||
'@modern-js/server-generator': patch | ||
'@modern-js/entry-generator': patch | ||
'@modern-js/base-generator': patch | ||
'@modern-js/repo-generator': patch | ||
'@modern-js/test-generator': patch | ||
'@modern-js/bff-generator': patch | ||
'@modern-js/mwa-generator': patch | ||
'@modern-js/ssg-generator': patch | ||
'@modern-js/generator-common': patch | ||
'@modern-js/generator-plugin': patch | ||
'@modern-js/generator-utils': patch | ||
'@modern-js/sandpack-react': patch | ||
'@modern-js/new-action': patch | ||
'@modern-js/upgrade': patch | ||
'@modern-js/create': patch | ||
'@scripts/build': patch | ||
--- | ||
|
||
feat: optimize generator bundle | ||
|
||
feat: 优化生成器打包 |
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
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
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/base-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/bff-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/changeset-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/dependence-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/entry-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/generator-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/module-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/module-test-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
11 changes: 3 additions & 8 deletions
11
packages/generator/generators/monorepo-generator/modern.config.js
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 |
---|---|---|
@@ -1,10 +1,5 @@ | ||
const { generatorBuildConfig } = require('@scripts/build'); | ||
|
||
module.exports = { | ||
buildConfig: { | ||
target: 'es2019', | ||
autoExternal: false, | ||
alias: { | ||
chalk: '@modern-js/utils/chalk', | ||
}, | ||
dts: false, | ||
}, | ||
buildConfig: generatorBuildConfig, | ||
}; |
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
Oops, something went wrong.