Why pull Vite or webpack into a simple site when all you want is import { createApp } from "vue" and a working browser page? Browsers have supported ES modules for years, yet they only accept URL paths: bare specifiers (short package names without dots or slashes) throw an error, and deploying your entire node_modules/ folder is heavy and unsafe.
In the State of JS 2025 survey, dependencies ranked as developers' third biggest pain point, and bundlers ranked sixth. To cut out the extra tooling, Lea Verou and Dmitry Sharabin released Nudeps on November 19, 2026 (MIT license, code on GitHub). It's a light-build utility: it only manages third-party packages and leaves your own code untouched.
How Nudeps Works Without a Bundler or Watcher
Setup takes a single command, and after that you install packages with normal npm install.
# Installs nudeps in devDependencies and adds hooks to package.json
npx nudeps install
# Standard package install — importmap updates automatically
npm install vue
# Before deployment: removes unused modules from the map and client_modules
npx nudeps --prune
There is no background watcher. Running npx nudeps install adds two npm hooks to package.json: dependencies runs after npm install or npm uninstall, and prepare runs after a fresh git clone (on Vercel, it also adds a build script). The package even ships a SKILL.md for AI agents so they don't manually stuff npx nudeps into npm run build.
In HTML, load importmap.js strictly before any module scripts:
<!-- index.html -->
<script src="importmap.js"></script>
<script type="module">
// Import directly by package name in the browser
import { createApp } from "vue";
globalThis.app = createApp({
data: () => ({ msg: "Vue works!" }),
}).mount(document.body);
</script>
Adding type="module" to importmap.js throws an error, and placing it after a module script triggers a console warning. With the right order, the browser runs your exact code—no source maps and no bundler surprises.
Inside client_modules and importmap.js
Nudeps works like a local phone book for the browser: you ask for "vue", and it resolves the exact path on your own domain without third-party CDNs like unpkg or esm.sh.
It copies the required files into ./client_modules/ under versioned directories like client_modules/vue@3.5.46/ with its own .gitignore, so upgrading one package doesn't bust the cache for others. JSPM Generator builds the map (details on how it works), and because browsers still require an inline <script type="importmap"> on every page, Nudeps wraps it in an external importmap.js injector (v0.4.4):
(() => {
/* Nudeps v0.4.4 */
let cS = document.currentScript;
let map = {
"imports": {
"vue":
"./client_modules/vue@3.5.46/dist/vue.esm-browser.prod.js",
"@vue/runtime-dom":
"./client_modules/@vue/runtime-dom@3.5.46/dist/" +
"runtime-dom.esm-browser.js"
},
"scopes": {}
};
// Rewrites relative paths into full URLs based on the script URL
const rebase = m => {
for (let k in m) m[k] = new URL(m[k], cS?.src).href;
return m;
};
rebase(map.imports);
for (let s in map.scopes) rebase(map.scopes[s]);
let script = Object.assign(document.createElement("script"), {
type: "importmap",
textContent: JSON.stringify(map)
});
if (cS) cS.after(script);
else (document.head ?? document.documentElement).append(script);
})();
The rebase function reads document.currentScript.src and turns relative paths into full URLs, so one file works across nested pages at any depth. In development, all direct dependencies enter the map, while npx nudeps --prune strips unused entries before release. The 13 live demos include Vue, Lit, Three.js, D3, GSAP, Lodash, Open Props, and two versions of jQuery side by side via npm aliases. Dynamic import(), import.meta.resolve(), local packages (npx nudeps dependents), and CSS aliases in client_modules/open-props/ all work too.
Where Nudeps Saves Hours and Where You Still Need a Bundler
This workflow shines for static sites, prototypes, web components, Eleventy projects, and Astro islands, and you can pair it with a lightweight compiler like tsc.
Still, the project is early (v0.4.4, 74 GitHub stars) and won't replace Vite in large SPAs. Nudeps doesn't transpile code (JSX, TypeScript, and Svelte still need a compiler), currently supports only npm (pnpm and yarn are planned), and expects ES modules. CommonJS packages like lodash run through an experimental require() shim, and server APIs (process.env) need stubs. There's no tree-shaking or file bundling either, so packages with hundreds of modules load slower than a single bundle, and no speed benchmarks exist yet. Finally, browser limits still apply: CSS and assets can't use bare specifiers, and import maps don't work inside Web Workers (whatwg/html#8173).



