Closed renataogarcia closed 9 months ago
I just removed these line in v1.10.0, does that cause some problems? How did you get this warn?
I got it with version 1.10.0 and vite 5.1.1
Running:
VITE_CJS_TRACE=true npx vite dev
Looks like a little confusing....I tried to add the lines but the warn is not gone, util I change the viteconfig to mts or add "type": "module" to my project. sorry i missed this before.
I guess vite transforms the config file into cjs format and load it using require, and the module
filed is used by bundle tool, but not support by node.
Looks like a little confusing....I tried to add the lines but the warn is not gone, util I change the viteconfig to mts or add "type": "module" to my project. sorry i missed this before.
I guess vite transforms the config file into cjs format and load it using require, and the
module
filed is used by bundle tool, but not support by node.
Yeah, indeed... I have "type":"module":
set.
The CJS build of Vite's Node API is deprecated.