rollup
Advanced tools
Comparing version 0.7.1 to 0.7.2
# 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 @@ |
@@ -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
204743
35
2973