@@ -141,7 +141,7 @@ async function tryImportMetaResolve(
141141 }
142142}
143143
144- function resolveStandardizedNameForRequrie (
144+ function resolveStandardizedNameForRequire (
145145 type : "plugin" | "preset" ,
146146 name : string ,
147147 dirname : string ,
@@ -174,18 +174,18 @@ const resolveStandardizedName: Gensync<
174174 ( type : "plugin" | "preset" , name : string , dirname ?: string ) => string
175175> = gensync ( {
176176 sync ( type , name , dirname = process . cwd ( ) ) {
177- return resolveStandardizedNameForRequrie ( type , name , dirname ) ;
177+ return resolveStandardizedNameForRequire ( type , name , dirname ) ;
178178 } ,
179179 async async ( type , name , dirname = process . cwd ( ) ) {
180180 if ( ! supportsESM ) {
181- return resolveStandardizedNameForRequrie ( type , name , dirname ) ;
181+ return resolveStandardizedNameForRequire ( type , name , dirname ) ;
182182 }
183183
184184 try {
185185 return await resolveStandardizedNameForImport ( type , name , dirname ) ;
186186 } catch ( e ) {
187187 try {
188- return resolveStandardizedNameForRequrie ( type , name , dirname ) ;
188+ return resolveStandardizedNameForRequire ( type , name , dirname ) ;
189189 } catch ( e2 ) {
190190 if ( e . type === "MODULE_NOT_FOUND" ) throw e ;
191191 if ( e2 . type === "MODULE_NOT_FOUND" ) throw e2 ;
@@ -218,7 +218,7 @@ function* requireModule(type: string, name: string): Handler<unknown> {
218218 name ,
219219 `You appear to be using a native ECMAScript module ${ type } , ` +
220220 "which is only supported when running Babel asynchronously." ,
221- // For backward compatiblity , we need to support malformed presets
221+ // For backward compatibility , we need to support malformed presets
222222 // defined as separate named exports rather than a single default
223223 // export.
224224 // See packages/babel-core/test/fixtures/option-manager/presets/es2015_named.js
0 commit comments