Socket
Socket
Sign inDemoInstall

rollup-plugin-replace

Package Overview
Dependencies
8
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

4

CHANGELOG.md
# rollup-plugin-replace changelog
## 1.1.0
* Generate sourcemaps by default
## 1.0.1

@@ -4,0 +8,0 @@

2

dist/rollup-plugin-replace.cjs.js

@@ -44,3 +44,3 @@ 'use strict';

var result = { code: magicString.toString() };
if (options.sourceMap) result.map = magicString.generateMap({ hires: true });
if (options.sourceMap !== false) result.map = magicString.generateMap({ hires: true });

@@ -47,0 +47,0 @@ return result;

@@ -41,3 +41,3 @@ import MagicString from 'magic-string';

var result = { code: magicString.toString() };
if (options.sourceMap) result.map = magicString.generateMap({ hires: true });
if (options.sourceMap !== false) result.map = magicString.generateMap({ hires: true });

@@ -44,0 +44,0 @@ return result;

{
"name": "rollup-plugin-replace",
"version": "1.0.1",
"version": "1.1.0",
"devDependencies": {
"eslint": "^1.7.3",
"gobble": "^0.10.2",
"gobble-cli": "^0.6.0",
"gobble-rollup": "^0.11.0",
"mocha": "^2.3.3",
"rollup": "^0.20.0",
"rollup": "^0.21.0",
"rollup-plugin-babel": "^1.0.0"

@@ -23,3 +20,4 @@ },

"pretest": "npm run build",
"build": "gobble build -f dist",
"build": "rollup -c -f cjs -o dist/rollup-plugin-replace.cjs.js && rollup -c -f es6 -o dist/rollup-plugin-replace.es6.js",
"prebuild": "rm -rf dist/*",
"prepublish": "npm test"

@@ -26,0 +24,0 @@ },

@@ -38,3 +38,3 @@ import MagicString from 'magic-string';

let result = { code: magicString.toString() };
if ( options.sourceMap ) result.map = magicString.generateMap({ hires: true });
if ( options.sourceMap !== false ) result.map = magicString.generateMap({ hires: true });

@@ -41,0 +41,0 @@ return result;

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc