Skip to content

Commit

Permalink
fix: Configure for tflite files as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Apr 15, 2024
1 parent 264dd4b commit 37db0f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package/example/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const pak = require('../package.json')
const root = path.resolve(__dirname, '..')
const modules = Object.keys({ ...pak.peerDependencies })

const defaultConfig = getDefaultConfig(__dirname)

/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
Expand All @@ -19,6 +21,7 @@ const config = {
// We need to make sure that only one version is loaded for peerDependencies
// So we block them at the root, and alias them to the versions in example's node_modules
resolver: {
assetExts: [...defaultConfig.resolver?.assetExts, 'tflite'],
blacklistRE: exclusionList(
modules.map(
(m) =>
Expand All @@ -42,4 +45,4 @@ const config = {
},
}

module.exports = mergeConfig(getDefaultConfig(__dirname), config)
module.exports = mergeConfig(defaultConfig, config)

0 comments on commit 37db0f5

Please sign in to comment.