Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

While trying to resolve module `idb` from file

const { getDefaultConfig } = require("@expo/metro-config");

const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.assetExts.push("cjs");

module.exports = defaultConfig;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #While #resolve #module #file
ADD COMMENT
Topic
Name
3+8 =