Comments (14)
@elitenas Thanks. I have downloaded the repro and will take a look.
from babel-loader.
I can confirm the problem.
@liuxingbaoyu @elitenas Okay, maybe this issue is platform dependent. I am on arm64.
Yeah, it's possible.
I use windows, I will try to fix it.
from babel-loader.
@nicolo-ribaudo please help with this as you made changes for 8.3.0
from babel-loader.
Can you provide a repo to reproduce it?
from babel-loader.
@liuxingbaoyu thanks for the response. Here is a repro project: https://drive.google.com/file/d/1lYluHiGl4UVnp9bbPjcIOid09NnbYifX/view?usp=sharing
It takes 30 seconds for a simple text change to apply. With babel-loader 8.2.5 or below, takes 2-3 seconds max.
from babel-loader.
@elitenas Can you attach the specific reproduction steps?
Here is mine:
npm i
npm run web
# Manually edit src/screens/Authentication/Login.tsx
# Observe http://localhost:19006/
The page reload is instant, less than 3 seconds consistently.
from babel-loader.
@JLHwung My repro steps were similar.
- npm install
- npm start
- press w
- make a change to login page
The only thing i would point out is make sure you are on npm > 8.3.x. I am not in front of my my work laptop but I believe we are on 8.19.2. Otherwise the overrides object in package.json is ignored if you are on npm below that.
Let me know if this doesn't work. I had another developer reproduce this well. So i can double check.
Expo by default doesn't use babel-loader 8.3.0 yet
from babel-loader.
Let me know if this doesn't work.
$ npm -v
9.4.0
$ npm ls babel-loader
[email protected] /path/to/my-app
└─┬ @expo/[email protected]
└── [email protected] overridden
$ cat node_modules/babel-loader/package.json | grep version
"version": "8.3.0",
"preversion": "yarn run test",
Expo by default doesn't use babel-loader 8.3.0 yet
Yes I am aware of that. I also tried bumping @expo/webpack-config
to 8.0.1
, hotloading is still instant.
from babel-loader.
It takes about 10s for my test, and I will downgrade the loader for testing.
By the way, it is recommended to update webpack, because repro does not work by default in the new version of node.
from babel-loader.
Just tried on a brand new laptop and it takes around 10 seconds. Keep in mind this is a barebone project. In our main project its taking 45 seconds.
from babel-loader.
@liuxingbaoyu @elitenas Okay, maybe this issue is platform dependent. I am on arm64.
from babel-loader.
Changes brought by #971.
Since externalDependencies
has a value, caching is disabled.
The fix seems to be to check if they are up to date?
from babel-loader.
Haven't tested yet but this seems about right. I wasn't able to reproduce the slowness in babel-loader 9.1.2 after upgrading to expo 48
from babel-loader.
@liuxingbaoyu any update on this for 8.x.x?
from babel-loader.
Related Issues (20)
- [Bug]: TypeError: this.getOptions is not a function + SPFx HOT 8
- @babel/plugin-transform-optional-chaining, configuration does not take effect HOT 1
- BunnyJs
- `module.exports` is returned instead of `module.exports.default` when importing from node_modules HOT 1
- Plugin transform-runtime generates incorrect commonjs wrapper HOT 2
- Issue while creating build for React JS Application HOT 6
- unknow option .default HOT 5
- Adding ES6 `import("find-cache-dir");` should be a breaking change. HOT 7
- You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | HOT 1
- [Bug]: HOT 2
- export default is not a function
- Babel-loader Cache - unable to cache in changing directory environment HOT 2
- After upgrade my nodejs version 16.8.0 to 16.9.0, I am getting this error "You may need an additional loader to handle the result of these loaders" HOT 1
- Bug Error Run npm ci npm ERR! Cannot read property '@babel/cli' of undefined npm ERR! HOT 1
- Feature request: Different browserslistEnv based on webpack target. HOT 1
- You may need additional loaders
- semver vulnerable to Regular Expression Denial of Service HOT 3
- Bump semver dependency to >= 7.5.2 HOT 1
- Vulnerable dependencies (indirect security issues) 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 babel-loader.