perf(resolve): avoid isWorkerRequest and clean up .ts imported a .js (#12571) (8ab1438), closes #12571 perf(resolve): findNearestMainPackageData instead of lookupFile (#12576) (54b376f), closes #12576 perf(server): only watch .env files in envDir (#12587) (26d8e72), closes #12587...
在我们执行npm run xxx npm 会通过软连接 查找这个软连接存在于源码目录node_modules/vite 所以npm run xxx 的时候,就会到 node_modules/bin中找对应的映射文件,然后再找到相应的js文件来执行 1.查找规则是先从当前项目的node_modlue /bin去找, 2.找不到去全局的node_module/bin 去找 3.再找不到 去环境变...
at error (file:///D:/Users/lihe07/Desktop/solid-demo/node_modules/_rollup@2.79.1@rollup/dist/es/shared/rollup.js:1858:30) at FileEmitter.emitFile (file:///D:/Users/lihe07/Desktop/solid-demo/node_modules/_rollup@2.79.1@rollup/dist/es/shared/rollup.js:22335:24) at Object.generateBund...
"description": "Override certain paths to be compiled and executed as CommonJS or ECMAScript modules.\nWhen overridden, the tsconfig \"module\" and package.json \"type\" fields are overridden, and\nthe file extension is ignored.\nThis is useful if you cannot use .mts, .cts, .mjs, or...
进入项目的时候在network里,比如react.js就会设置:Cache-Control: max-age=31536000,immutable,这样我们浏览器就不用重新发送请求,而可以直接使用浏览器的缓存。如果项目里面的main.js我们没改变就是:cache-control: no-cache。 3-5 在非 Node 服务中集成 Vite 这些服务不是运行js的。比如一些传统的老项目,他们的...
Describe the bug Uncaught Error: Module "" has been externalized for browser compatibility. Cannot access ".locale" in client code. at Object.get (index.5d7218ef.js:1964:29951) at index.5d7218ef.js:1965:21599 at Array.forEach (<anonymous...
{ + "@iconify/vue": "^4.1.1", + "@types/lodash": "^4.14.201", + "@types/node": "^20.3.1", "@vitejs/plugin-vue": "^4.2.3", + "sass": "^1.69.5", "typescript": "^5.0.2", "vite": "^4.4.5", "vue-tsc": "^1.8.5" diff --git a/packages/client/src/App.vue ...
perf(resolve): avoid isWorkerRequest and clean up .ts imported a .js (#12571) (8ab1438), closes #12571 perf(resolve): findNearestMainPackageData instead of lookupFile (#12576) (54b376f), closes #12576 perf(server): only watch .env files in envDir (#12587) (26d8e72), closes #12587...
perf(resolve): avoid isWorkerRequest and clean up .ts imported a .js (#12571) (8ab1438), closes #12571 perf(resolve): findNearestMainPackageData instead of lookupFile (#12576) (54b376f), closes #12576 perf(server): only watch .env files in envDir (#12587) (26d8e72), closes #12587...
perf(resolve): avoid isWorkerRequest and clean up .ts imported a .js (#12571) (8ab1438), closes #12571 perf(resolve): findNearestMainPackageData instead of lookupFile (#12576) (54b376f), closes #12576 perf(server): only watch .env files in envDir (#12587) (26d8e72), closes #12587...