Skip to content

Commit fc54d37

Browse files
committed
review(ap): getBeforeCustomTransformers -> getCustomBeforeTransformers
1 parent 273f9ca commit fc54d37

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/compiler/output-targets/dist-custom-elements/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export const getBundleOptions = (
7676
id: 'customElements',
7777
platform: 'client',
7878
conditionals: getCustomElementsBuildConditionals(config, buildCtx.components),
79-
customBeforeTransformers: getBeforeCustomTransformers(config, compilerCtx, buildCtx.components, outputTarget),
79+
customBeforeTransformers: getCustomBeforeTransformers(config, compilerCtx, buildCtx.components, outputTarget),
8080
externalRuntime: !!outputTarget.externalRuntime,
8181
inlineWorkers: true,
8282
inputs: {
@@ -315,7 +315,7 @@ export const generateEntryPoint = (
315315
* @param outputTarget the output target configuration
316316
* @returns a list of transformers to use in the transpilation process
317317
*/
318-
const getBeforeCustomTransformers = (
318+
const getCustomBeforeTransformers = (
319319
config: d.ValidatedConfig,
320320
compilerCtx: d.CompilerCtx,
321321
components: d.ComponentCompilerMeta[],

src/compiler/output-targets/dist-hydrate-script/bundle-hydrate-factory.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const bundleHydrateFactory = async (
2323
id: 'hydrate',
2424
platform: 'hydrate',
2525
conditionals: getHydrateBuildConditionals(buildCtx.components),
26-
customBeforeTransformers: getBeforeCustomTransformers(config, compilerCtx),
26+
customBeforeTransformers: getCustomBeforeTransformers(config, compilerCtx),
2727
inlineDynamicImports: true,
2828
inputs: {
2929
'@app-factory-entry': '@app-factory-entry',
@@ -54,7 +54,7 @@ export const bundleHydrateFactory = async (
5454
* @returns a collection of transformations that should be applied to the source code, intended for the `before` part
5555
* of the pipeline
5656
*/
57-
const getBeforeCustomTransformers = (
57+
const getCustomBeforeTransformers = (
5858
config: d.ValidatedConfig,
5959
compilerCtx: d.CompilerCtx
6060
): ts.TransformerFactory<ts.SourceFile>[] => {

src/compiler/output-targets/dist-lazy/lazy-output.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const outputLazy = async (
4444
id: 'lazy',
4545
platform: 'client',
4646
conditionals: getLazyBuildConditionals(config, buildCtx.components),
47-
customBeforeTransformers: getBeforeCustomTransformers(config, compilerCtx),
47+
customBeforeTransformers: getCustomBeforeTransformers(config, compilerCtx),
4848
inlineWorkers: config.outputTargets.some(isOutputTargetDist),
4949
inputs: {
5050
[config.fsNamespace]: LAZY_BROWSER_ENTRY_ID,
@@ -108,7 +108,7 @@ export const outputLazy = async (
108108
* @returns a collection of transformations that should be applied to the source code, intended for the `before` part
109109
* of the pipeline
110110
*/
111-
const getBeforeCustomTransformers = (
111+
const getCustomBeforeTransformers = (
112112
config: d.ValidatedConfig,
113113
compilerCtx: d.CompilerCtx
114114
): ts.TransformerFactory<ts.SourceFile>[] => {

0 commit comments

Comments
 (0)