snowpackjs/snowpack
### [`v2.1.0`](https://togithub.com/snowpackjs/snowpack/releases/v2.1.0)
[Compare Source](https://togithub.com/snowpackjs/snowpack/compare/@snowpack/plugin-dotenv@2.0.5...v2.1.0)
#### Directory Import Resolution - `import './routes';`
Previously, we'd done a very lazy `+ '.js'` to any import missing a file extension, which broke if the import was a directory and users were expecting node-style directory resolution to the directory's `index.js` file.
Now, we first check if it's a directory, in which case we add a slightly less lazy `+ '/index.js'` instead.
#### Faster, Better Import Scanning
Previously, we'd powered our install import scanner with esbuild, which caused any non-standard JS to fail if esbuild didn't support it, blocking users from using Snowpack entirely (`err: Parse Error`).
Now, we have a general fallback scanner for any non-JS syntax. This is now an entirely static analysis of your source directory, meaning we were able to remove esbuild entirely. It's very, very fast now.
#### True `http-proxy` Support
> See: [#375](https://togithub.com/snowpackjs/snowpack/issues/375), [#373](https://togithub.com/snowpackjs/snowpack/issues/373), [#371](https://togithub.com/snowpackjs/snowpack/issues/371)
Our "proxy" build script was naively just making `http` requests to the proxied destination. This work now uses a real proxy server implementation to support more requests, and sets the stage for us to introduce better proxy configuration support for all the http-proxy library options.
#### Fixes & Smaller Improvements
- run scripts should go before mount scripts in build [`9fb9f78`](https://togithub.com/snowpackjs/snowpack/commit/9fb9f78)
- reinstall dependencies when node_modules dependencies change [`0023e0b`](https://togithub.com/snowpackjs/snowpack/commit/0023e0b)
- improve rollup error handling [`8488618`](https://togithub.com/snowpackjs/snowpack/commit/8488618)
- Fix the issue where CTRL+C is needed twice to exit ([#380](https://togithub.com/snowpackjs/snowpack/issues/380))
Configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box.
This PR contains the following updates:
2.0.5
->2.1.0
Release Notes
snowpackjs/snowpack
### [`v2.1.0`](https://togithub.com/snowpackjs/snowpack/releases/v2.1.0) [Compare Source](https://togithub.com/snowpackjs/snowpack/compare/@snowpack/plugin-dotenv@2.0.5...v2.1.0) #### Directory Import Resolution - `import './routes';` Previously, we'd done a very lazy `+ '.js'` to any import missing a file extension, which broke if the import was a directory and users were expecting node-style directory resolution to the directory's `index.js` file. Now, we first check if it's a directory, in which case we add a slightly less lazy `+ '/index.js'` instead. #### Faster, Better Import Scanning Previously, we'd powered our install import scanner with esbuild, which caused any non-standard JS to fail if esbuild didn't support it, blocking users from using Snowpack entirely (`err: Parse Error`). Now, we have a general fallback scanner for any non-JS syntax. This is now an entirely static analysis of your source directory, meaning we were able to remove esbuild entirely. It's very, very fast now. #### True `http-proxy` Support > See: [#375](https://togithub.com/snowpackjs/snowpack/issues/375), [#373](https://togithub.com/snowpackjs/snowpack/issues/373), [#371](https://togithub.com/snowpackjs/snowpack/issues/371) Our "proxy" build script was naively just making `http` requests to the proxied destination. This work now uses a real proxy server implementation to support more requests, and sets the stage for us to introduce better proxy configuration support for all the http-proxy library options. #### Fixes & Smaller Improvements - run scripts should go before mount scripts in build [`9fb9f78`](https://togithub.com/snowpackjs/snowpack/commit/9fb9f78) - reinstall dependencies when node_modules dependencies change [`0023e0b`](https://togithub.com/snowpackjs/snowpack/commit/0023e0b) - improve rollup error handling [`8488618`](https://togithub.com/snowpackjs/snowpack/commit/8488618) - Fix the issue where CTRL+C is needed twice to exit ([#380](https://togithub.com/snowpackjs/snowpack/issues/380))Configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.