File tree 4 files changed +12
-14
lines changed
packages/angular_devkit/build_angular/src/utils
4 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import Piscina from 'piscina' ;
10
+ import { InlineOptions } from './bundle-inline-options' ;
10
11
import { maxWorkers } from './environment-options' ;
11
12
import { I18nOptions } from './i18n-options' ;
12
- import { InlineOptions } from './process-bundle' ;
13
13
14
14
const workerFile = require . resolve ( './process-bundle' ) ;
15
15
Original file line number Diff line number Diff line change 6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
8
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';
11
11
import * as fs from 'fs' ;
12
12
import * as path from 'path' ;
13
13
import { BundleActionExecutor } from './action-executor' ;
14
+ import { InlineOptions } from './bundle-inline-options' ;
14
15
import { copyAssets } from './copy-assets' ;
15
16
import { assertIsError } from './error' ;
16
17
import { I18nOptions } from './i18n-options' ;
17
- import { InlineOptions } from './process-bundle' ;
18
18
import { Spinner } from './spinner' ;
19
19
20
20
function emittedFilesToInlineOptions (
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ import templateBuilder from '@babel/template';
20
20
import * as fs from 'fs/promises' ;
21
21
import * as path from 'path' ;
22
22
import { workerData } from 'worker_threads' ;
23
+ import { InlineOptions } from './bundle-inline-options' ;
23
24
import { allowMinify , shouldBeautify } from './environment-options' ;
24
25
import { assertIsError } from './error' ;
25
26
import { I18nOptions } from './i18n-options' ;
@@ -65,7 +66,7 @@ async function loadLocalizeTools(): Promise<LocalizeUtilityModule> {
65
66
return loadEsmModule ( '@angular/localize/tools' ) ;
66
67
}
67
68
68
- export async function createI18nPlugins (
69
+ async function createI18nPlugins (
69
70
locale : string ,
70
71
translation : unknown | undefined ,
71
72
missingTranslation : 'error' | 'warning' | 'ignore' ,
@@ -101,15 +102,6 @@ export async function createI18nPlugins(
101
102
return { diagnostics, plugins } ;
102
103
}
103
104
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
-
113
105
interface LocalizePosition {
114
106
start : number ;
115
107
end : number ;
You can’t perform that action at this time.
0 commit comments