翠 / green

Results 80 issues of 翠 / green

This PR partially implements dropping unused local variables. Multi-level dropping (for example: `a` is unused and `b` depends on `a`) is not implemented. This is useful for some cases like...

`import.meta` has different instances when `target` is below `es2020`. But it has same instance if `target` is same or above `es2020`. If it is intented to be unmodified (https://github.com/evanw/esbuild/issues/208#issuecomment-652691781) (`import.meta`'s...

This PR fixes `composes from '...'` not working on windows. The tests are already covered so I just enabled github actions with Windows. refs https://github.com/css-modules/css-modules-loader-core/issues/16, https://github.com/vitejs/vite/issues/3092

This PR updates babel to v7. Also sets @babel/preset-env target to node10 which is the minimal supported version of this package (and postcss).

When the number of args passed is more than expected, it is likely to be mistaken the command syntax. I think it would be good to have an error in...

### 🐛 Bug description ```jsx const App = () => ( Hello World ) ``` is transpiled to a invalid js code ([Vue JSX Explorer](https://vue-jsx-explorer.netlify.app/#const%20App%20%3D%20()%20%3D%3E%20(%0D%0A%20%20%3Cdiv%0D%0A%20%20%20%20class%3D%22%0D%0A%20%20%20%20%20%20foo%0D%0A%20%20%20%20%20%20bar%0D%0A%20%20%20%20%22%0D%0A%20%20%3E%0D%0A%20%20%20%20Hello%20World%0D%0A%20%20%3C%2Fdiv%3E%0D%0A)%0D%0A)). Babel/TS supports this syntax ([Babel...

bug

When `numVarSelectorRecords > 1`, it fails to parse. This PR fixes this issue.

### Describe the bug When config file is changed, vitest restarts. But `include` option is not reloaded. ### Reproduction https://stackblitz.com/edit/vitest-dev-vitest-yrxx9p?file=vite.config.ts&initialPath=__vitest__ 1. Run `npm run test`. 2. See `test/basic.test.ts` and `test/suite.test.ts`...

Adding entries to `optimizeDeps` will prevent these happening and it will reduce start up time. ```text [vite] ✨ new dependencies optimized: preact/debug, preact/jsx-dev-runtime [vite] ✨ optimized dependencies changed. reloading ```...

It seems currently sass-embedded starts one process for each compile request and stops it after compilation. When using Vue components with sass, Vite requests one compile request for one file....

enhancement
JS API