包详细信息

@callstack/repack-plugin-expo-modules

callstack10.2kMIT5.2.0

A plugin for @callstack/repack that integrates Expo Modules

repack, re.pack, plugin, repack-plugin

自述文件

Re.Pack logo

A toolkit to build your React Native application with Rspack or Webpack.

mit licence npm downloads Chat PRs Welcome

@callstack/repack-plugin-expo-modules is a plugin for @callstack/repack that compliments the integration of Expo Modules into your React Native projects.

About

This plugin helps and compliments the process of enabling Expo Modules in Re.Pack projects by defining necessary globals that are expected by Expo Modules at runtime. However, it is not sufficient on its own for a complete setup. For comprehensive guidance on using Expo Modules with Re.Pack, please refer to our official documentation.

Installation

npm install -D @callstack/repack-plugin-expo-modules

Usage

Plugin

To add the plugin to your Re.Pack configuration, update your rspack.config.js or webpack.config.js as follows:

import { ExpoModulesPlugin } from "@callstack/repack-plugin-expo-modules";

export default (env) => {
  // ...
  return {
    // ...
    plugins: [
      // ...
      new ExpoModulesPlugin(),
    ],
  };
};

Check out our website at https://re-pack.dev for more info and documentation or our GitHub: https://github.com/callstack/repack.