Skip to content

@FredKSchott FredKSchott released this Feb 16, 2020 · 560 commits to master since this release

🆕 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

Assets 2
You can’t perform that action at this time.