Error with pnpm / vite / windows
Opened this issue · 0 comments
Makio64 commented
Hello,
I got an error on my windows,
Fhis didnt work :
const threeBundleSuffix = path.sep + path.join("node_modules", "three", "build", "three.module.js");
it end up in node_modules\three\build\three.module.js
but it should be node_modules/three/build/three.module.js
Once this is fixed : it reduce the chunk only from 585.40 kB to 564.44kB ( I think its only the gl constant but not proper tree shaking )
three v155
vite 4.4.9
export default defineConfig({
plugins: [
{ ...threeMinifier(), enforce: 'pre' },
basicSsl(),
//etc..
],
tried with pnpm & yarn both same result.