npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mpxjs/vue-cli-plugin-mpx-rn

v2.2.33-web-rn.0

Published

React Native build and sourcemap plugin for mpx-cli

Readme

@mpxjs/vue-cli-plugin-mpx-rn

负责 RN 的 Webpack 配置、externals、分平台产物同步、项目生成配置和 sourcemap 工具。选择 RN 时 CLI 自动安装此插件。

已有项目需在 Mpx 根项目和 RN 宿主中安装本插件;根项目中由 mpx-cli-service 自动加载,宿主通过 bin 和 Metro 中间件使用。

RN sourcemap

RN 宿主通过开发依赖安装本插件,使用 compose-mpx-sourcemap bin 合并 Metro 与 Mpx sourcemap;中间件和合并逻辑随插件依赖更新,无需复制到宿主 scripts/。

已有 RN 宿主迁移时,在宿主目录安装包含该 bin 的插件版本,并更新 metro.config.js 中的中间件配置(保留其他自定义配置):

const { createMpxSourcemapMiddleware } = require('@mpxjs/vue-cli-plugin-mpx-rn/lib/metro-mpx-sourcemap-middleware')

// 合入已有 Metro config.server
const server = {
  enhanceMiddleware: createMpxSourcemapMiddleware({ projectRoot: __dirname })
}

宿主 package.json 中的合并命令改为:

{
  "compose-sourcemap:ios": "compose-mpx-sourcemap --metro-map ./ios/main.jsbundle.map --mpx-map ./mpx-build/ios/app.js.map --generated-source mpx-build/ios/app.js --output ./ios/main.jsbundle.map --allow-failure",
  "compose-sourcemap:android": "compose-mpx-sourcemap --metro-map android/app/src/main/assets/index.android.bundle.map --mpx-map ./mpx-build/android/app.js.map --generated-source mpx-build/android/app.js --output android/app/src/main/assets/index.android.bundle.map --allow-failure"
}

根项目和宿主使用兼容的插件版本,重新执行对应平台的 Mpx 构建,再重启 Metro。确认已切换后,可删除旧的 scripts/compose-mpx-sourcemap.js、scripts/metro-mpx-sourcemap-middleware.js 和根目录遗留的 app.js.map。