Giter Club home page Giter Club logo

Comments (5)

Jekiwijaya avatar Jekiwijaya commented on June 5, 2024 2

That's because of https://github.com/facebook/metro/blob/master/packages/metro/src/lib/polyfills/require.js#L138-L148

https://github.com/smallnew/react-native-multibundler/blob/master/platform57.config.js#L2-L16
to fix, createModuleIdFactory must return a number type.

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性

from react-native-multibundler.

seuzxh avatar seuzxh commented on June 5, 2024

有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性

如果使用拆包方式的话就意味着要放弃 dev==true 的编译方式吗?

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

有个不完美的解决方法,打开基础包js 文本,在开头修改var DEV=true,变为var DEV=false,..不过这样可能会缺失一些RN的开发特性

如果使用拆包方式的话就意味着要放弃 dev==true 的编译方式吗?

你可以写两套加载逻辑,一套是发布时候用的拆包,一套是测试时候按普通方式加载js包

from react-native-multibundler.

smallnew avatar smallnew commented on June 5, 2024

新的版本可以使用数字作为moduleId,这样可以解决打dev为true的包运行出错的问题,新的版本也添加了debug功能

from react-native-multibundler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.