github FredKSchott/snowpack v1.4.0

latest releases: snowpack@3.8.8, app-template-svelte-typescript@2.1.5, plugin-dotenv@2.2.0...
4 years ago

🆕 Custom install plugins (via Rollup)

You might encounter non-JS npm packages that can only run with additional parsing/processing. Svelte packages, for example, commonly include .svelte files that will require additional tooling to parse and install for the browser.

In these rare cases, you can now add custom Rollup plugins to your Snowpack config to handle these special files:

// snowpack.config.js
module.exports = {
  rollup: {
    plugins: [require('rollup-plugin-svelte')()]
  }
};

Thanks to @DangoDev for identifying the problem, proposing the solution, and implementing the PR.

Other fixes and improvements

v1.3.1...v1.4.0

Don't miss a new snowpack release

NewReleases is sending notifications on new releases.