Comments (6)
Hey @pratt3351,
please verify there are no changes in main
chunk after you remove the import. Compare both using diff
and see if there is something there. Also have you tried checking what's hiding under 264982:35
in the generated bundle code? Best to do that with minifying turned off so the names are not mangled.
from repack.
Hey @pratt3351,
please verify there are no changes in
main
chunk after you remove the import. Compare both usingdiff
and see if there is something there. Also have you tried checking what's hiding under264982:35
in the generated bundle code? Best to do that with minifying turned off so the names are not mangled.
@jbroma
hi, thank for reply.
i have a basic question, where can i find main.chunk file in my local device ? sorry for basic question
from repack.
Hey @pratt3351,
please verify there are no changes in
main
chunk after you remove the import. Compare both usingdiff
and see if there is something there. Also have you tried checking what's hiding under264982:35
in the generated bundle code? Best to do that with minifying turned off so the names are not mangled.
@jbroma
ok i find something. i use zone.js, so i removed it and then i received this following error.
i guess that Promise construct not working.
from repack.
Hey @pratt3351,
please verify there are no changes inmain
chunk after you remove the import. Compare both usingdiff
and see if there is something there. Also have you tried checking what's hiding under264982:35
in the generated bundle code? Best to do that with minifying turned off so the names are not mangled.@jbroma hi, thank for reply. i have a basic question, where can i find main.chunk file in my local device ? sorry for basic question
Hi @pratt3351, regarding this, you can unzip the .ipa
or .apk
(you can change it to .zip and unzip it) and explore the bundle contents and verify it was placed there by OutputPlugin
(part of RepackPlugin
).
As to your second question, it looks transpiled properly (class-transform), but it fails to include runtime helpers, please create a reproduction repository so I can take a closer look - can't really help you much more than that witohut looking at the code.
from repack.
sorry for late reponse
i'm so sorry, for cant give you to reproduction repository.! (its our business app, and cannot divide logic)
but i find something,
when i build js bundle from this command (npx react-native webpack-bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output ./test/main.jsbundle --minify false --sourcemap-output ./test/main.jsbundle.map
), diffrence between not removed component main bundle and removed component version main bundle
its looks like this
right side: not removed component jsbundle
left side :removed component jsbundle
in this screenshot, i have a question,
- why my ProductDetailScreen = react.lazy function webpack_require number is changed ?
2, i think that productCouponService is removed because it is not used, it is cause of this error ?
thinks for your help. always @jbroma
from repack.
@pratt3351 the number you are referring to is moduleId
(see webpack docs) and in production mode it's set to 'deterministic'. It means that when the content of that module changes, so does the ID.
Reviewing this issue once again, I noticed that what you need is Module Federation and not Code Splitting if you want to introduce modifications like this.
I'll close this issue since this is something that isn't supported.
from repack.
Related Issues (20)
- More control over file path and URL for remote assets HOT 14
- Module Federation host app not working [ScriptManager] failed to load script : [NetworkFailure] HOT 2
- Error: Unhandled error. ([ScriptManager] Failed to load script:) HOT 4
- Update docs related to Expo on Usage docs page HOT 1
- Error: Unhandled error. ([ScriptManager] Failed to load script:) HOT 1
- [webpack-cli] RangeError: Maximum call stack size exceeded HOT 5
- Error : TypeError: Cannot read properties of undefined (reading 'forEach') HOT 7
- Error: no such file or directory, open '/Users/x/dev/client/packages/app/node_modules/react-native/Libraries/LogBox/Data/LogBoxData.js'" HOT 1
- Error: Property 'SHA1' doesn't exist when using otpauth library HOT 2
- add axios to repack app HOT 1
- aws-appsync issue HOT 6
- How to locate cause of Error: ENOENT: no such file or directory HOT 4
- build bundle mini app HOT 1
- Error: Can't resolve 'react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance
- File src_navigation_Request_tsx.chunk.bundle for ios not found in compilation assets and i try to add react-native-reanimated-carousel lib to project
- i try to add react-native-reanimated-carousel lib to project
- Stuck while loading bundles on second app launch with cache flag enabled
- `sourceURL` in raw React Native stack frames is inconsitent
- Property '__webpack_share_scopes__' doesn't exist HOT 3
- Task :app:createBundleReleaseJsAndAssets_SentryUpload_*************************** FAILED HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repack.