Skip to content

Commit

Permalink
Change selected compiler message
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinpalkovic committed Nov 20, 2023
1 parent a7e5430 commit 39ddc25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions code/builders/builder-webpack5/src/preview/loaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const createBabelLoader = (
typescriptOptions: TypescriptOptions,
excludes: string[] = []
) => {
logger.info(dedent`Using Babel compiler`);
return {
test: typescriptOptions.skipBabel ? /\.(mjs|jsx?)$/ : /\.(mjs|tsx?|jsx?)$/,
use: [
Expand All @@ -24,9 +25,7 @@ export const createBabelLoader = (
};

export const createSWCLoader = async (excludes: string[] = [], options: Options) => {
logger.warn(dedent`
The SWC loader is an experimental feature and may change or even be removed at any time.
`);
logger.info(dedent`Using SWC compiler`);

const swc = await options.presets.apply('swc', {}, options);
const typescriptOptions = await options.presets.apply<{ skipCompiler?: boolean }>(
Expand Down

0 comments on commit 39ddc25

Please sign in to comment.