Skip to content

Commit 04278b9

Browse files
committed
fix(@angular/cli): improve bootstrapping time
The x18n command was loading everything which was slowing down starting times.
1 parent b8328dc commit 04278b9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/@angular/cli/commands/xi18n.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
const Command = require('../ember-cli/lib/models/command');
22

3-
import {Extracti18nTask} from '../tasks/extract-i18n';
4-
53
export interface Xi18nOptions {
64
outputPath?: string;
75
verbose?: boolean;
@@ -25,6 +23,7 @@ const Xi18nCommand = Command.extend({
2523

2624
],
2725
run: function (commandOptions: any) {
26+
const Extracti18nTask = require('../tasks/extract-i18n');
2827

2928
const xi18nTask = new Extracti18nTask({
3029
ui: this.ui,

0 commit comments

Comments
 (0)