Socket
Socket
Sign inDemoInstall

@bacons/expo-metro-runtime

Package Overview
Dependencies
2
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bacons/expo-metro-runtime

Tools for making experimental Metro bundler features work


Version published
Weekly downloads
173
increased by64.76%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

@bacons/expo-metro-runtime

Temporary utility package for using Metro on web with lazy loading and Fast Refresh.

Add the package to your npm dependencies

yarn add @bacons/expo-metro-runtime

Usage

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;

Keywords

FAQs

Last updated on 25 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc