Skip to content
Choose a tag to compare


Choose a tag to compare

🆕 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