Preparing for system design interviews?  Try bugzed.com →

babel-plugin-bare-import-rewrite

JSON →
library 2.0.0 ·javascript
verified Jun 17, 2026

A Babel plugin that rewrites bare import specifiers (like 'lodash') to browser-compatible URL-based paths for use without a bundler, currently at stable version 2.0.0. It resolves bare imports to absolute or relative URLs pointing to node_modules on a web server, with configurable options like modulesDir, alwaysRootImport, and ignorePrefixes. This plugin is a pragmatic solution until native import maps gain full browser support, making it distinct from bundler-based approaches like Webpack or Rollup. It supports ESM, CJS, and TypeScript projects using Babel, actively maintained, and requires @babel/core >=7.8.3.

total hits 14
actors 4 distinct systems
last hit 20d ago AhrefsBot
GPTBot
4
Script
1
ByteDance
1
Humans
4

top countries 🇺🇸 United States · 🇨🇦 Canada · VN · MY · 🇩🇪 Germany