three-minifier icon indicating copy to clipboard operation
three-minifier copied to clipboard

Error with pnpm / vite / windows

Open Makio64 opened this issue 2 years ago • 0 comments

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.

Makio64 avatar Sep 03 '23 16:09 Makio64