{"library":"rollup-plugin-rewrite-imports","title":"rollup-plugin-rewrite-imports","description":"Rollup plugin that rewrites ES module import and dynamic import paths by prepending a string to each path. Version 2.0.0 is the latest stable release; maintained on an as-needed basis. It solves the problem of fragmented builds where dependencies reside in separate node_modules directories, enabling theme developers and platform owners to use standard web component tooling while keeping builds isolated. Differentiates from other path-rewriting plugins by focusing specifically on ESM imports in the context of legacy or multi-repo setups, with no external dependencies.","language":"javascript","status":"maintenance","last_verified":"Mon Apr 27","install":{"commands":["npm install rollup-plugin-rewrite-imports"],"cli":null},"imports":["import rewriteImports from 'rollup-plugin-rewrite-imports'","const rewriteImports = require('rollup-plugin-rewrite-imports').default","import rewriteImports from 'rollup-plugin-rewrite-imports'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import rewriteImports from 'rollup-plugin-rewrite-imports';\nimport autoExternal from 'rollup-plugin-auto-external';\n\nexport default {\n  input: 'src/custom.js',\n  output: {\n    file: 'build/custom.esm.js',\n    format: 'esm',\n  },\n  plugins: [\n    autoExternal(),\n    rewriteImports('../../build/es6/node_modules/'),\n  ],\n};","lang":"javascript","description":"Configure Rollup to use rewriteImports, prepending a path to each import statement.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}