20 lines
482 B
JavaScript
20 lines
482 B
JavaScript
/* eslint-disable no-undef */
|
|
// Learn more https://docs.expo.io/guides/customizing-metro
|
|
const { getDefaultConfig } = require('expo/metro-config');
|
|
|
|
/** @type {import('expo/metro-config').MetroConfig} */
|
|
const config = getDefaultConfig(__dirname);
|
|
|
|
module.exports = (async () => {
|
|
const {
|
|
resolver: { sourceExts },
|
|
} = config;
|
|
|
|
return {
|
|
...config,
|
|
resolver: {
|
|
...config.resolver,
|
|
sourceExts: [...sourceExts, 'mjs'],
|
|
},
|
|
};
|
|
})(); |