import{nodeExternals}from'rollup-plugin-node-externals' will both work. Options You generally want to have yourruntime dependencies(those that will be imported/required at runtime) listed underdependenciesinpackage.json, and yourdevelopment dependencies(those that should be bundled in by Rollup) liste...
While this plugin has always been compatible with Vite, it was previously necessary to use the followingvite.config.jsto make it work reliably in every situation: import{defineConfig}from'vite'importnodeExternalsfrom'rollup-plugin-node-externals'exportdefaultdefineConfig({...plugins:[{enforce:'pre'...
{ "name": "rollup-plugin-node-externals", "version": "7.1.1", "description": "Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup config", "author": "Stephan Schreiber <septh@sfr.fr>", "contributors": [ "Tomer Aberbach <tomeraberbach@gmail.com>...
26"node":">=8.0.0" 27}, 28"repository": { 29"type":"git", 30"url":"https://github.com/Septh/rollup-plugin-node-externals" 31}, 32"homepage":"https://github.com/Septh/rollup-plugin-node-externals", 33"main":"dist/cjs/index.js", ...
A Rollup/Vite plugin that automatically declares NodeJS built-in modules and npm dependencies as 'external' - rollup-plugin-node-externals/tsconfig.json at main · wmertens/rollup-plugin-node-externals
A Rollup/Vite plugin that automatically declares NodeJS built-in modules and npm dependencies as 'external' - rollup-plugin-node-externals/README.md at main · Septh/rollup-plugin-node-externals
A Rollup/Vite plugin that automatically declares NodeJS built-in modules and npm dependencies as 'external' - rollup-plugin-node-externals/package-lock.json at main · wmertens/rollup-plugin-node-externals
"name": "rollup-plugin-node-externals", "version": "5.1.2", "version": "5.1.3", "description": "Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup config", "author": "Stephan Schreiber <septh@sfr.fr>", "contributors": [ 0 comments on commit...
A Rollup/Vite plugin that automatically declares NodeJS built-in modules and npm dependencies as 'external' - History for eslint.config.mjs - Septh/rollup-plugin-node-externals
A Rollup/Vite plugin that automatically declares NodeJS built-in modules and npm dependencies as 'external' - Release v7.1.1 · Septh/rollup-plugin-node-externals