Skip to content

Commit 71cf735

Browse files
talaat197Talaat Khaled
and
Talaat Khaled
authored
feat(compiler): support maxParallelFileOps in RollupInputOptions (#6255)
* feat(compiler): support maxParallelFileOps in RollupInputOptions * prettier * prettier --------- Co-authored-by: Talaat Khaled <talaat-medhat-talaat.khaled@1und1.de>
1 parent 1bdcdb9 commit 71cf735

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/compiler/bundle/bundle-output.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ export const getRollupOptions = (
159159
cache: compilerCtx.rollupCache.get(bundleOpts.id),
160160

161161
external: config.rollupConfig.inputOptions.external,
162+
163+
maxParallelFileOps: config.rollupConfig.inputOptions.maxParallelFileOps,
162164
};
163165

164166
return rollupOptions;

src/compiler/config/validate-rollup-config.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ export const validateRollupConfig = (config: d.Config): d.RollupConfig => {
2626
if (rollupConfig.inputOptions && isObject(rollupConfig.inputOptions)) {
2727
cleanRollupConfig = {
2828
...cleanRollupConfig,
29-
inputOptions: pluck(rollupConfig.inputOptions, ['context', 'moduleContext', 'treeshake', 'external']),
29+
inputOptions: pluck(rollupConfig.inputOptions, [
30+
'context',
31+
'moduleContext',
32+
'treeshake',
33+
'external',
34+
'maxParallelFileOps',
35+
]),
3036
};
3137
}
3238

src/declarations/stencil-public-compiler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,6 +1817,7 @@ export interface RollupInputOptions {
18171817
context?: string;
18181818
moduleContext?: ((id: string) => string) | { [id: string]: string };
18191819
treeshake?: boolean;
1820+
maxParallelFileOps?: number;
18201821
external?:
18211822
| (string | RegExp)[]
18221823
| string

0 commit comments

Comments
 (0)