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
2 changes: 0 additions & 2 deletions tools/egg-bin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ node worker.js
`package.json#egg.framework` or `egg`. Absolute framework paths are not
supported by the bundled runtime.
- `--mode` build mode, `production` or `development`, default to `production`
- `--no-tegg` accepted by the CLI, but not applied by the current bundler
implementation yet
- `--force-external` package name to always keep external, supports multiple
- `--inline-external` package name to force inline, supports multiple
- `--pack-alias` `@utoo/pack` resolve alias in `<specifier>=<target>` form,
Expand Down
14 changes: 1 addition & 13 deletions tools/egg-bin/src/commands/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ export default class Bundle extends BaseCommand<typeof Bundle> {
options: [...bundleModes],
default: 'production',
}),
'no-tegg': Flags.boolean({
description: 'disable tegg decoratedFile collection',
default: false,
}),
'force-external': Flags.string({
description: 'package name to always mark as external (repeatable)',
multiple: true,
Expand Down Expand Up @@ -107,14 +103,7 @@ export default class Bundle extends BaseCommand<typeof Bundle> {
: path.join(baseDir, flags.manifest)
: undefined;

debug(
'bundle: baseDir=%s, outputDir=%s, framework=%s, mode=%s, tegg=%s',
baseDir,
outputDir,
flags.framework,
flags.mode,
!flags['no-tegg'],
);
debug('bundle: baseDir=%s, outputDir=%s, framework=%s, mode=%s', baseDir, outputDir, flags.framework, flags.mode);

const { bundle } = await import('@eggjs/egg-bundler');
const packAlias = parsePackAliases(flags['pack-alias'], baseDir);
Expand All @@ -124,7 +113,6 @@ export default class Bundle extends BaseCommand<typeof Bundle> {
manifestPath,
framework: await getBundleFrameworkSpecifier(baseDir, flags.framework),
mode: getBundleMode(flags.mode),
tegg: !flags['no-tegg'],
externals: {
force: flags['force-external'],
inline: flags['inline-external'],
Expand Down
5 changes: 0 additions & 5 deletions tools/egg-bin/test/commands/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ describe('test/commands/bundle.test.ts', () => {
manifestPath: undefined,
framework: 'aliyun-egg',
mode: 'production',
tegg: true,
externals: {
force: [],
inline: [],
Expand All @@ -51,7 +50,6 @@ describe('test/commands/bundle.test.ts', () => {
'.egg/custom-manifest.json',
'--mode',
'development',
'--no-tegg',
'--force-external',
'@scope/foo',
'--force-external',
Expand All @@ -67,7 +65,6 @@ describe('test/commands/bundle.test.ts', () => {
manifestPath: path.join(baseDir, '.egg/custom-manifest.json'),
framework: 'aliyun-egg',
mode: 'development',
tegg: false,
externals: {
force: ['@scope/foo', 'bar'],
inline: ['baz'],
Expand All @@ -92,7 +89,6 @@ describe('test/commands/bundle.test.ts', () => {
manifestPath: undefined,
framework: 'aliyun-egg',
mode: 'production',
tegg: true,
externals: {
force: [],
inline: [],
Expand All @@ -118,7 +114,6 @@ describe('test/commands/bundle.test.ts', () => {
manifestPath: undefined,
framework: '@my-org/framework',
mode: 'production',
tegg: true,
externals: {
force: [],
inline: [],
Expand Down
2 changes: 0 additions & 2 deletions tools/egg-bundler/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export interface BundlerConfig {
readonly pack?: BundlerPackConfig;
/** Runtime asset copy tuning. */
readonly runtimeAssets?: BundlerRuntimeAssetsConfig;
/** Enable tegg decoratedFile collection. Defaults to `true`. */
readonly tegg?: boolean;
}

export interface BundleResult {
Expand Down
Loading