@bacons/expo-metro-runtime
Advanced tools
Weekly downloads
Readme
Temporary utility package for using Metro on web with lazy loading and Fast Refresh.
yarn add @bacons/expo-metro-runtime
To add web support to the runtime:
import "@bacons/expo-metro-runtime";
// Rest of your app...
To enable React Suspense in React Native for all platforms (dev only):
metro.config.js
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");
const config = getDefaultConfig(__dirname);
config.transformer = {
experimentalImportBundleSupport: true,
asyncRequireModulePath: path.resolve(
"@bacons/expo-metro-runtime/asyncRequire"
),
};
module.exports = config;
FAQs
Tools for making experimental Metro bundler features work
The npm package @bacons/expo-metro-runtime receives a total of 338 weekly downloads. As such, @bacons/expo-metro-runtime popularity was classified as not popular.
We found that @bacons/expo-metro-runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.