翠 / green

Results 80 issues of 翠 / green

### Description This PR updates esbuild to 0.17.5 from 0.16.14. [v0.17.0](https://github.com/evanw/esbuild/releases/tag/v0.17.0) has some breaking changes. The breaking changes are: - Move everything related to incremental builds to a new `context`...

p3-significant 🔨

### Description This PR removes the constructed sheet (`adoptedStyleSheets`) style-injection approach. - This approach is currently disabled due to low perf - It's not possible to fix https://github.com/vitejs/vite/issues/11760 in this...

p1-chore :broom:

### Version v16.15.0 ### Platform Microsoft Windows NT 10.0.19044.0 x64 / WSL: Linux PC 4.4.0-19041-Microsoft #1237-Microsoft Sat Sep 11 14:32:00 PST 2021 x86_64 x86_64 x86_64 GNU/Linux ### Subsystem _No response_...

confirmed-bug
module

### Description https://github.com/vitejs/vite/pull/15318#discussion_r1423607117 ### Additional context --- ### What is the purpose of this pull request? - [ ] Bug fix - [ ] New Feature - [ ] Documentation...

p1-chore :broom:

### Description This PR adds CSP nonce support for dev and build. - In dev - CSS imports in JS: If any script tag or `style`/`link[rel=stylesheet]` tag has a `nonce`...

enhancement
p2-to-be-discussed :cake:

### Description - `.css?url` now returns a URL to transformed CSS - before, it was returning a URL to transformed CSS in dev, and to raw CSS after build -...

feat: css
p3-minor-bug :hammer:

esbuild does not output source mapping for directives. babel and SWC both output them and I expect it to be output. [esbuild try](https://esbuild.github.io/try/#dAAwLjE5LjkALS1zb3VyY2VtYXA9ImlubGluZSIAJ3VzZSBjbGllbnQnOwoKY29uc29sZS5sb2coJ2ZvbycpOwo) ([sourcemap visualization](https://evanw.github.io/source-map-visualization/#MzA2ACJ1c2UgY2xpZW50IjsNCmNvbnNvbGUubG9nKCJmb28iKTsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWRhdGE6YXBwbGljYXRpb24vanNvbjtiYXNlNjQsZXdvZ0lDSjJaWEp6YVc5dUlqb2dNeXdLSUNBaWMyOTFjbU5sY3lJNklGc2lQSE4wWkdsdVBpSmRMQW9nSUNKemIzVnlZMlZ6UTI5dWRHVnVkQ0k2SUZzaUozVnpaU0JqYkdsbGJuUW5PMXh1WEc1amIyNXpiMnhsTG14dlp5Z25abTl2SnlrN1hHNGlYU3dLSUNBaWJXRndjR2x1WjNNaU9pQWlPMEZCUlVFc1VVRkJVU3hKUVVGSkxFdEJRVXM3SWl3S0lDQWlibUZ0WlhNaU9pQmJYUXA5Q2c9PTE2MwB7CiAgInZlcnNpb24iOiAzLAogICJzb3VyY2VzIjogWyI8c3RkaW4+Il0sCiAgInNvdXJjZXNDb250ZW50IjogWyIndXNlIGNsaWVudCc7XG5cbmNvbnNvbGUubG9nKCdmb28nKTtcbiJdLAogICJtYXBwaW5ncyI6ICI7QUFFQSxRQUFRLElBQUksS0FBSzsiLAogICJuYW1lcyI6IFtdCn0K)) [babel](https://stackblitz.com/edit/babel-sapphi-red-template-vakqym?file=package.json,build.js,input.js) ([sourcemap visualization](https://evanw.github.io/source-map-visualization/#MzU0ACd1c2UgY2xpZW50JzsNCg0KY29uc29sZS5sb2coJ2ZvbycpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9ZGF0YTphcHBsaWNhdGlvbi9qc29uO2NoYXJzZXQ9dXRmLTg7YmFzZTY0LGV5SjJaWEp6YVc5dUlqb3pMQ0p1WVcxbGN5STZXeUpqYjI1emIyeGxJaXdpYkc5bklsMHNJbk52ZFhKalpYTWlPbHNpZFc1cmJtOTNiaUpkTENKemIzVnlZMlZ6UTI5dWRHVnVkQ0k2V3lJbmRYTmxJR05zYVdWdWRDYzdYSEpjYmx4eVhHNWpiMjV6YjJ4bExteHZaeWduWm05dkp5azdYSEpjYmlKZExDSnRZWEJ3YVc1bmN5STZJa0ZCUVVFc1dVRkJXVHM3UVVGRldrRXNUMEZCVHl4RFFVRkRReXhIUVVGSExFTkJRVU1zUzBGQlN5eERRVUZESW4wPTE4OAB7InZlcnNpb24iOjMsIm5hbWVzIjpbImNvbnNvbGUiLCJsb2ciXSwic291cmNlcyI6WyJ1bmtub3duIl0sInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50JztcclxuXHJcbmNvbnNvbGUubG9nKCdmb28nKTtcclxuIl0sIm1hcHBpbmdzIjoiQUFBQSxZQUFZOztBQUVaQSxPQUFPLENBQUNDLEdBQUcsQ0FBQyxLQUFLLENBQUMifQ==)) [swc](https://play.swc.rs/?version=1.3.100&code=H4sIAAAAAAAAA1MvLU5VSM7JTM0rUbfm5eLlSs7PK87PSdXLyU%2FXUE%2FLz1fXBAoDANO4gEAmAAAA&config=H4sIAAAAAAAAA1WPSw6DMAxE95wCed1FxaIL7sAhrNSgoPxkB6kIcfcmkNCyi9%2FMZOytaVuYRUHfbumZhoAsxNeciKwu4icRIGVRFOsQ4VHVWbI0ohE60H4qEJEnikdKumfXlQQY74VqojCrnR7X%2F07lbWASuRuzFd1k6N7YlFaw%2Fr0cYrklroHODV7wM9Wy62PQMtRk5OVk4hdWNGDIO4B2RjuCZv8CUFCpdDEBAAA%3D) ([sourcemap...

When a source map that exists at `original/dist/foo.js.map` has `"sourceRoot":"../src/","sources":["foo.ts"]`, esbuild resolves the `source` as `original/dist/foo.ts`. But it should resolve to `original/src/foo.ts` instead. According to the [sourcemap spec](https://github.com/tc39/source-map-spec/blob/main/source-map-rev3.md), `sourceRoot` is...

### Describe the feature ES2024 includes ["RegExp `v` flag with set notation + properties of strings"](https://github.com/tc39/proposal-regexp-v-flag) feature. ### Babel plugin or link to the feature description https://github.com/babel/babel/pull/14091 ### Additional context...

enhancement

### Describe the bug `let` is reserved in `let`/`const`/`class` declarations in non-strict mode, but SWC parser doesn't reject them. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Lexical_grammar#:~:text=(also%20reserved%20in%20const%2C%20let%2C%20and%20class%20declarations) ### Input code ```typescript { let let } { const...

C-bug