Comments (6)
Sorry for the late reply. I've tried to compose multiple replies, and it keeps changing drastically as I start to fully understand the problem (aka: "fully read the ticket"!).
Would it make sense to add support for --import
(in addition to --loader
)? Is it as simple as that?
I'm really not sure what the broader impact is, but I'm guessing (because I've not used these myself) that import
is ESM "require this module" and loader
is commonjs "(actually) require this module".
My gut says that since adding the original loader
support didn't mess up anyone's day, I'd guess adding import
support would land in the same way.
Just let me know (hopefully with a considered response) and I'll get the change in and released π
from nodemon.
That's live
from nodemon.
Same here, I want to use node --import tsimp/import
, instead of node --loader ts-node/esm
. Currently, I am using a mentioned workaround with execMap
:
{
"ext": "ts",
+ "execMap": {
+ "ts": "node"
+ },
"env": {
"NODE_OPTIONS": "--import tsimp/import"
}
}
from nodemon.
I think that's correct, to support both flags.
Usage of --loader
is discouraged (in fact it logs warnings in some Node.js versions), and it is recommended to use --import
flag instead.
You can read more in official Node.js docs:
- https://nodejs.org/docs/latest-v20.x/api/cli.html#--experimental-loadermodule
- https://nodejs.org/docs/latest-v20.x/api/cli.html#--importmodule
from nodemon.
I just pushed the code but for some reason it's not deploying, so I'll try to sort that out this evening.
from nodemon.
π This issue has been resolved in version 3.0.3 π
The release is available on:
Your semantic-release bot π¦π
from nodemon.
Related Issues (20)
- β [FEATURE REQUEST] : Add Scroll to Top Button to NODEMON Webpage HOT 3
- FEATURE: Add scroll-up button (Hacktober Fest) HOT 2
- nodemon can't kill process under win10 HOT 5
- Cannot read properties of undefined (reading 'filename') in Node v20.6.0 (yarn2) HOT 7
- nodemon can not be stopped by Ctrl-C with --no-stdin after restart with terminal in raw mode HOT 9
- catch global error not working HOT 1
- ignore everything except repeated specific sub directories HOT 3
- Old version of `debug` dependency introduces `CVE-2017-16137` vulnerability HOT 1
- Workflows failing - not even getting to tests⦠HOT 2
- I need some assistance. itβs not a bug but I didn't find the discussion tag. So I have to raise a question as an issue:does nodemon support running ts files? HOT 5
- Issue on a dependency - CVE-2022-25883 HOT 3
- Graceful shutdown of Docker container not respected HOT 6
- Nodemon support for native .env file loading (Remy edit: was always supported) HOT 4
- nodemon called as a subprocess within a subprocess breaks stdin after SIGINT HOT 5
- Nodemon TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" HOT 4
- Nodemon the `punycode` module is deprecated in node js 21 HOT 2
- [Feature Request] Add a quit (repl) command HOT 7
- says server restarting but changes are not reflected on the terminal HOT 13
- - `nodemon -v`:
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 nodemon.