repack icon indicating copy to clipboard operation
repack copied to clipboard

node_modules are also put into remote folder along with async chunks when building release

Open Gogul-S opened this issue 2 years ago • 0 comments

Environment

android

Description

I am trying to separate out set of screens inside my RN application as an async chunk which will be loaded dynamically. Consider this to be a small app that encapsulates business use case. When I am building a production releaase, node_modules like react navigation, redux are also generated as a chunk and put into remote folder.

Expected

Only app module imported as async chunk to be put into remote folder. node_modules to be present as a local bundle not inside remote folder.

Attaching config file & screen shots of sample app.

Remote Folder Contents App js file

webpack_config.txt

Gogul-S avatar Aug 12 '22 09:08 Gogul-S