Skip to content

Commit

Permalink
fix(boilerplate): inherit default metro from expo (#2526 by @frankcalise
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frankcalise authored Oct 17, 2023
1 parent 23c3953 commit c484e3d
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions boilerplate/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
module.exports = {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}),
// 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);

config.transformer.getTransformOptions = async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: true,
},
}
});

module.exports = config;

0 comments on commit c484e3d

Please sign in to comment.