After app refresh it got not updated bundle (cache?)
See original GitHub issueEnvironment
MAC OS 10.14.6
"dependencies": {
"react": "16.9.0",
"react-native": "0.61.5"
},
"devDependencies": {
"@babel/core": "^7.8.4",
"@babel/runtime": "^7.8.4",
"@haul-bundler/babel-preset-react-native": "^0.16.0",
"@haul-bundler/preset-0.60": "^0.17.0",
"@haul-bundler/cli": "^0.17.0",
"@react-native-community/eslint-config": "^0.0.7",
"babel-jest": "^25.1.0",
"eslint": "^6.8.0",
"jest": "^25.1.0",
"metro-react-native-babel-preset": "^0.58.0",
"react-test-renderer": "16.9.0"
},
module.exports = {
presets: ['module:@haul-bundler/babel-preset-react-native'],
};
import {withPolyfills, makeConfig} from '@haul-bundler/preset-0.60';
export default makeConfig({
bundles: {
index: {
entry: withPolyfills('./index'),
},
},
});
Description
After launching app, changing code and refreshing it in simulator (cmd + r), nothing happens. Looks like bundler always sends an initial bundle, and do not updating it. If i kill bundle process and re-launch it, i will see an updated code.
Reproducible Demo
I have faced this issue with completely new project.
- do react-native init App
- install “haul” according to “Getting started” documentation
- change App.js
- press refresh
==================================
-
open simulator
-
change code
-
press refresh
Nothing…
-
kill process
-
Repeat
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Problem about bundle cache, bundles not refreshing - MSDN
Bundles are refreshing only when restart application (webconfig or dll changes). I don't would like restart my app for every changes in js...
Read more >Bundle not updating after included file has changed (returns ...
I just had the exact same problem. I have a folder with 2 CSS files: ~/Content/main.css; ~/Content/main.min.css (pre-existing from my previous manual ...
Read more >Apache Felix Framework Bundle Cache
When the framework is refreshed or shutdown, all revision directories are purged from the bundle cache and only the most recent revision directory...
Read more >bundle cache - Bundler
When using gems that have different packages for different platforms, Bundler supports caching of gems for other platforms where the Gemfile has been...
Read more >Refresh caches when dependencies are updated
Ideally, caches will be refreshed when build dependencies are updated. ... I was not able to find a way to invalidate/update the cache...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing this issue. We’ve confirmed that this is no longer happening (at least with the default config).
Yup, something is wrong. It looks like it’s not watching for changes.