Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rollup-plugin-node-externals

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-node-externals - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

dist/externals.cjs.js
'use strict';
var path = require('path');
const externals = (options = {}) => {

@@ -12,3 +14,3 @@ const opts = Object.assign({

let externals = require('builtin-modules');
const pkg = require('./package.json');
const pkg = require(path.resolve(process.cwd(), 'package.json'));
externals = externals.concat(opts.deps ? Object.keys(pkg.dependencies || {}) : [], opts.devDeps ? Object.keys(pkg.devDependencies || {}) : [], opts.peerDeps ? Object.keys(pkg.peerDependencies || {}) : [], opts.optDeps ? Object.keys(pkg.optionalDependencies || {}) : []);

@@ -15,0 +17,0 @@ const warnings = [];

@@ -0,1 +1,3 @@

import { resolve } from 'path';
const externals = (options = {}) => {

@@ -10,3 +12,3 @@ const opts = Object.assign({

let externals = require('builtin-modules');
const pkg = require('./package.json');
const pkg = require(resolve(process.cwd(), 'package.json'));
externals = externals.concat(opts.deps ? Object.keys(pkg.dependencies || {}) : [], opts.devDeps ? Object.keys(pkg.devDependencies || {}) : [], opts.peerDeps ? Object.keys(pkg.peerDependencies || {}) : [], opts.optDeps ? Object.keys(pkg.optionalDependencies || {}) : []);

@@ -13,0 +15,0 @@ const warnings = [];

{
"name": "rollup-plugin-node-externals",
"version": "1.0.1",
"version": "1.0.2",
"description": "Automatically declare NodeJS built-in modules and npm dependencies as 'external' in Rollup config",

@@ -5,0 +5,0 @@ "main": "dist/externals.cjs.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc