{"library":"rollup-plugin-jspm","title":"rollup-plugin-jspm","description":"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.","language":"javascript","status":"active","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-jspm"],"cli":null},"imports":["import jspmRollup from 'rollup-plugin-jspm'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"// rollup.config.js\nimport path from 'path';\nimport babelRollup from 'rollup-plugin-babel';\nimport jspmRollup from 'rollup-plugin-jspm';\n\nconst basePath = path.resolve('components');\n\nexport default {\n  input: './main.js',\n  plugins: [\n    jspmRollup({ \n      basePath, \n      env: { browser: true, node: false },\n      envTarget: {\n        browsers: 'last 2 versions'\n      },\n      externals: {}\n    }),\n    babelRollup()\n  ]\n};","lang":"javascript","description":"Configures Rollup to use jspm for module resolution with browser environment and Babel transpilation.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}