You'd think it should be simple. You run npm install vue, add <script type="module"> with import { createApp } from "vue", and open the page. Immediately the browser throws an error: it only understands explicit URLs like ./app.js, while a bare package name without a path (a bare specifier) means nothing to it. Serving node_modules/ directly in production is both unsafe and bloated.
So for two libraries, you end up installing Vite or Webpack. In the State of JS 2025 survey, dependency management ranked 3rd among frontend pain points, and bundlers ranked 6th. Lea Verou and Dmitry Sharabin released Nudeps (source on GitHub). The authors call it a light-build approach: the tool stays lightweight and never touches your code.
How It Works in Practice
Nudeps doesn't run a background dev server or file watcher; it runs only when dependencies change. Under the hood, it relies on browser Import Maps (Baseline Widely Available), which map short package names to real file URLs.
Setup takes two commands:
# Installs nudeps and registers dependencies and prepare hooks
npx nudeps install
# Installs a package and immediately prepares client files
npm install vue
The dependencies hook runs Nudeps automatically after npm install, and prepare restores everything after git clone. The tool copies needed files from node_modules/ into a local client_modules/ directory with versions in folder names (vue@3.5.45) and its own .gitignore. Using JSPM, it then generates an external /importmap.js script because the HTML spec currently requires <script type="importmap"> to be inline.
In your HTML, add one line before your module scripts:
<!-- Load the generated import map -->
<script src="/importmap.js"></script>
<script type="module">
// Bare imports now work directly in the browser
import { createApp } from "vue";
</script>
From there, any static file server on your own domain serves the project with no third-party CDNs. Versioned folder names give you targeted cache busting: updating one library only re-downloads that package.
What Works Out of the Box — and the Catch
Coverage is surprisingly broad: dynamic import(), import.meta.resolve(), local and git packages, npm aliases (npm i vue2@npm:vue@2), and experimental workspaces all work. A prune option trims the production map to only used imports, and a bundled SKILL.md tells AI agents not to run npm run build. Some CommonJS packages (Node's require() format, like lodash) work via a tiny require() shim, while CSS and fonts like Open Props or Bootstrap Icons get symlinks with plain URLs in client_modules/.
There's no magic here, though. Bundler work simply shifted from code compilation to npm install, where Nudeps parses dependencies and builds the map. Copying client files into a separate folder feels a bit like the old Bower days, updated for native ES modules and Import Maps.
There is also a security catch. Automation relies on the dependencies lifecycle hook: if, after supply-chain attacks like Shai-Hulud, you install packages with npm install --ignore-scripts, the hook won't fire and you'll have to run npx nudeps by hand.
Where Minimalism Hits Its Ceiling
Comparing the three approaches side by side makes the boundaries clear.
| Approach | Import Resolution | Your Code | Tree-Shaking | Best Fit |
|---|---|---|---|---|
| Vite / esbuild | Bundle + dev server | Compiles | Yes | Large SPAs, React, Svelte, Vue SFC |
| Nudeps | client_modules/ + /importmap.js | Untouched | No | Small sites, SSGs, islands, CMS |
| CDN (esm.sh) | External URL in map | Untouched | On CDN | Quick demos without node_modules |
Nudeps's biggest drawback is having no bundling and no tree-shaking. Pre-bundled libraries in one or two files fly, but a package split into hundreds of tiny ESM files triggers a network waterfall. Even over HTTP/2 and HTTP/3, tiny files compress worse with Brotli and gzip, and Lea Verou's announcement doesn't include benchmarks yet.
Compilation limits apply too: TypeScript, JSX, Svelte, and Vue SFC still need a separate compiler like tsc. CommonJS support is experimental, packages expecting Node globals (process.env) need shims, Web Workers still don't support bare specifiers (whatwg/html#8173), and only npm works — not pnpm or yarn. Large SPAs still need a bundler, but for static sites, prototypes, island architectures, and legacy CMSs like WordPress, Nudeps offers a clean way to load vue, d3, three, lit, gsap, or @floating-ui/dom without heavy tooling or external CDNs.





