File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ---
Original file line number Diff line number Diff line change @@ -236,16 +236,20 @@ function transformRules(targetPlatform) {
236236 return { [ key ] : require . resolve ( "./assetFileTransformer.js" ) } ;
237237}
238238
239- /** @type {(defaultPlatform?: string, userOptions?: InitialOptions) => InitialOptions } */
240- module . exports = (
239+ /**
240+ * @param {string= } defaultPlatform
241+ * @param {InitialOptions= } userOptions
242+ * @returns {InitialOptions }
243+ */
244+ function getPreset (
241245 defaultPlatform ,
242246 {
243247 moduleNameMapper : userModuleNameMapper ,
244248 transform : userTransform ,
245249 transformIgnorePatterns : userTransformIgnorePatterns ,
246250 ...userOptions
247251 } = { }
248- ) => {
252+ ) {
249253 const searchPaths = { paths : [ process . cwd ( ) ] } ;
250254 const [ targetPlatform , platformPath ] = getTargetPlatform (
251255 defaultPlatform ,
@@ -280,4 +284,6 @@ module.exports = (
280284 ] ,
281285 ...userOptions ,
282286 } ;
283- } ;
287+ }
288+
289+ module . exports = getPreset ;
You can’t perform that action at this time.
0 commit comments