Do you want to request a feature or report a bug?
A bug
What is the current behavior?
sourceExts and assetExts are missing from getDefaultConfig(__dirname).resolver. I'm using them to parse scss and svg files like such
module.exports = (async () => {
const {
resolver: {sourceExts, assetExts},
} = await getDefaultConfig();
return {
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false,
},
}),
babelTransformerPath: require.resolve('./rn-transformer.js'),
},
resolver: {
assetExts: assetExts.filter(ext => ext !== 'svg'),
sourceExts: [...sourceExts, 'scss', 'css', 'pcss', 'sass', 'svg'],
},
};
})();
If the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can yarn install and yarn test.
Repo
yarn install && yarn start
What is the expected behavior?
Currently sourceExts and assetExts are missing from getDefaultConfig(__dirname).resolver as it would on the log after starting the project
Please provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.
node v16.17.1
yarn version v1.22.19
Ventura 13.4
Do you want to request a feature or report a bug?
A bug
What is the current behavior?
sourceExtsandassetExtsare missing fromgetDefaultConfig(__dirname).resolver. I'm using them to parse scss and svg files like suchIf the current behavior is a bug, please provide the steps to reproduce and a minimal repository on GitHub that we can
yarn installandyarn test.Repo
yarn install && yarn startWhat is the expected behavior?
Currently
sourceExtsandassetExtsare missing fromgetDefaultConfig(__dirname).resolveras it would on the log after starting the projectPlease provide your exact Metro configuration and mention your Metro, node, yarn/npm version and operating system.