Skip to content

v1.4.0

Compare
Choose a tag to compare
@FredKSchott FredKSchott released this 16 Feb 21:55

🆕 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