Comments (2)
The key is that Node 20 changed the flag to --import
and didn't add a warning until a later minor version. 🤷♂️
- NODE_OPTIONS="--loader tsx" npx webpack
+ NODE_OPTIONS="--import tsx" npx webpack
from webpack-cli.
It's not entirely clear how the loader previously reached the require
since --loader
is not supported by the underlying rechoir
dependency:
My guess is that interpret
or rechoir
are suddenly exiting early even if Node "natively" supports .ts files (via global --loader
). Until Node 18, they probably let the .ts
extension through.
from webpack-cli.
Related Issues (20)
- Incorrect warning about watch command HOT 4
- while calling remote app getting [object object] i used webpack when i open separate it's work fine but when open in host app and call remote app getting error [object object] HOT 1
- webpack-dev-server doesn't work with installed webpack and webpack-cli in the parent folder HOT 7
- Import error after updating to v5.1.2 HOT 3
- Accept `undefined` and `null` in `plugins` array HOT 3
- Chore: Update dependencies
- Project HOT 1
- @webpack-cli/[email protected] has some deprecated NPM modules HOT 3
- debuglog: Package no longer supported. HOT 2
- @npmcli/move-file: This functionality has been moved to @npmcli/fs HOT 1
- `esbuild-kit/tsx` loader support for TypeScript configuration HOT 6
- Cannot read properties of undefined (reading 'getArguments') HOT 13
- Feature request: Include testing of updating dependencies in a readme
- With default config, the webpack serve does not serve the images in html HOT 5
- `--node-env` doesn't set the `mode` as expected HOT 3
- Add support for tsimp TS loader HOT 7
- Cannot Get Rid Of "Module not found: Error: Can't resolve 'fs/promises'" HOT 1
- webpack-cli wants `@swc/register` but it is deprecated for `@swc-node/register` HOT 2
- process.loadEnvFile(); fails to load HOT 2
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 webpack-cli.