New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"--watch" options does not works. #8789
Comments
Hey @hg-pyun! We really appreciate you taking the time to report an issue. The collaborators If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack |
I am having the same issue. package.json {
"name": "scripts",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"dependencies": {
"cheerio": "^1.0.0-rc.2",
"good": "^8.1.2",
"he": "^1.2.0",
"moment": "^2.24.0",
"request": "^2.88.0",
"request-promise-native": "^1.0.7"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4"
},
"scripts": {
"build": "yarn babel ./index.js --out-file index.compiled.js",
"dev": "nodemon index.compiled.js"
}
} .babelrc {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
]
} |
Hi! Thank you for the great tool! Environment
package.json
.babelrc
|
Same problem :
|
@hzoo Please, check this issue :D |
Are folks here running these scripts in Docker or in a virtual machine or anything like that? |
In my case, running on |
In fact it seems to work but it doesn't log anything in the console to say that the code have been re-compiled |
For me, it does seem to work when running code on one partition, but does not work on another partition.
So it seems to be some lower level thing related to specific partition/file system, unrelated to babel.
|
I encountered this issue with typescript. Babel will watch js files by default, but not .ts files.
I'm using versions:
Hope that helps! |
@jasonmcaffee Thank you for the report. The issue you reported will be fixed by #10283. |
Bug Report
Current Behavior
Setting up --watch options with a Babel and modifying a file should automatically be compiled. But now I don't think I can automatically compile.
Input Code
Expected behavior/code
Automatically compiles when the file that Babel is watching is modified.
Babel Configuration (.babelrc, package.json, cli command)
.babelrc
package.json
Environment
The text was updated successfully, but these errors were encountered: