A Rollup plugin that integrates jspm 2 module resolution into the Rollup build pipeline. Version 1.1.0 is the latest stable release, with irregular release cadence. It resolves imports using jspm's import map and handles environment-specific module conditionals (browser/node). Unlike generic Rollup plugins, it leverages jspm's package management and dependency resolution, allowing projects to use jspm's import map as the single source of truth for module loading. Works well with Babel for transpilation. Note that it only supports jspm 2, not earlier versions.
npm install rollup-plugin-jspmVerified import paths — ran on the pinned version, not inferred.
Configures Rollup to use jspm for module resolution with browser environment and Babel transpilation.
Ensure your project uses jspm 2 (npm package jspm).
Use path.resolve() to provide absolute path.
Run 'jspm install dependency' and ensure import map is up to date.
Run 'npm install --save-dev rollup-plugin-jspm'.