File tree Expand file tree Collapse file tree 4 files changed +12
-14
lines changed
packages/angular_devkit/build_angular/src/utils Expand file tree Collapse file tree 4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 77 */
88
99import Piscina from 'piscina' ;
10+ import { InlineOptions } from './bundle-inline-options' ;
1011import { maxWorkers } from './environment-options' ;
1112import { I18nOptions } from './i18n-options' ;
12- import { InlineOptions } from './process-bundle' ;
1313
1414const workerFile = require . resolve ( './process-bundle' ) ;
1515
Original file line number Diff line number Diff line change 66 * found in the LICENSE file at https://angular.io/license
77 */
88
9- require ( '../../../../../lib/bootstrap-local' ) ;
10- module . exports = require ( './process-bundle.ts' ) ;
9+ export interface InlineOptions {
10+ filename : string ;
11+ code : string ;
12+ map ?: string ;
13+ outputPath : string ;
14+ missingTranslation ?: 'warning' | 'error' | 'ignore' ;
15+ setLocale ?: boolean ;
16+ }
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ import { EmittedFiles } from '@angular-devkit/build-webpack';
1111import * as fs from 'fs' ;
1212import * as path from 'path' ;
1313import { BundleActionExecutor } from './action-executor' ;
14+ import { InlineOptions } from './bundle-inline-options' ;
1415import { copyAssets } from './copy-assets' ;
1516import { assertIsError } from './error' ;
1617import { I18nOptions } from './i18n-options' ;
17- import { InlineOptions } from './process-bundle' ;
1818import { Spinner } from './spinner' ;
1919
2020function emittedFilesToInlineOptions (
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import templateBuilder from '@babel/template';
2020import * as fs from 'fs/promises' ;
2121import * as path from 'path' ;
2222import { workerData } from 'worker_threads' ;
23+ import { InlineOptions } from './bundle-inline-options' ;
2324import { allowMinify , shouldBeautify } from './environment-options' ;
2425import { assertIsError } from './error' ;
2526import { I18nOptions } from './i18n-options' ;
@@ -65,7 +66,7 @@ async function loadLocalizeTools(): Promise<LocalizeUtilityModule> {
6566 return loadEsmModule ( '@angular/localize/tools' ) ;
6667}
6768
68- export async function createI18nPlugins (
69+ async function createI18nPlugins (
6970 locale : string ,
7071 translation : unknown | undefined ,
7172 missingTranslation : 'error' | 'warning' | 'ignore' ,
@@ -101,15 +102,6 @@ export async function createI18nPlugins(
101102 return { diagnostics, plugins } ;
102103}
103104
104- export interface InlineOptions {
105- filename : string ;
106- code : string ;
107- map ?: string ;
108- outputPath : string ;
109- missingTranslation ?: 'warning' | 'error' | 'ignore' ;
110- setLocale ?: boolean ;
111- }
112-
113105interface LocalizePosition {
114106 start : number ;
115107 end : number ;
You can’t perform that action at this time.
0 commit comments