Socket
Socket
Sign inDemoInstall

rollup

Package Overview
Dependencies
28
Maintainers
1
Versions
799
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.1 to 0.7.2

src/utils/normalizePlatform.js

4

CHANGELOG.md
# rollup changelog
## 0.7.2
* Fix sourcemap paths on Windows ([#6](https://github.com/rollup/rollup/pull/6))
## 0.7.1

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

17

dist/rollup.js

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

function badExports(option, keys) {
function getExportMode__badExports(option, keys) {
throw new Error('\'' + option + '\' was specified for options.exports, but entry module has following exports: ' + keys.join(', '));

@@ -1377,6 +1377,6 @@ }

if (exportKeys.length !== 1 || exportKeys[0] !== 'default') {
badExports('default', exportKeys);
getExportMode__badExports('default', exportKeys);
}
} else if (exportMode === 'none' && exportKeys.length) {
badExports('none', exportKeys);
getExportMode__badExports('none', exportKeys);
}

@@ -1409,4 +1409,13 @@

function unixizePath(path) {
if (_path.sep === "/") return path;
return path.split(_path.sep).join("/");
}
function Bundle___classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function Bundle__badExports(option, keys) {
throw new Error('\'' + option + '\' was specified for options.exports, but entry module has following exports: ' + keys.join(', '));
}
var Bundle = (function () {

@@ -1759,3 +1768,3 @@ function Bundle(options) {

map.sources = map.sources.map(function (source) {
return source ? _path.relative(dir, source) : null;
return source ? unixizePath(_path.relative(dir, source)) : null;
});

@@ -1762,0 +1771,0 @@ })();

{
"name": "rollup",
"version": "0.7.1",
"version": "0.7.2",
"description": "Next-generation ES6 module bundler",

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

@@ -14,3 +14,8 @@ import { basename, dirname, extname, relative, resolve } from 'path';

import getIndentString from './utils/getIndentString';
import { unixizePath } from './utils/normalizePlatform.js';
function badExports ( option, keys ) {
throw new Error( `'${option}' was specified for options.exports, but entry module has following exports: ${keys.join(', ')}` );
}
export default class Bundle {

@@ -361,3 +366,3 @@ constructor ( options ) {

map.sources = map.sources.map( source => {
return source ? relative( dir, source ) : null
return source ? unixizePath( relative( dir, source ) ) : null
});

@@ -364,0 +369,0 @@ }

Sorry, the diff of this file is not supported yet

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