rollup-plugin-sourcemaps
Advanced tools
Comparing version 0.3.1 to 0.3.2
import _regeneratorRuntime from 'babel-runtime/regenerator'; | ||
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator'; | ||
import { createFilter } from 'rollup-pluginutils'; | ||
import { resolveSourceMap } from 'source-map-resolve'; | ||
import { resolve } from 'source-map-resolve'; | ||
import { readFile } from 'fs'; | ||
@@ -27,3 +27,3 @@ import _Promise from 'babel-runtime/core-js/promise'; | ||
var readFileAsync = promisify(readFile); | ||
var resolveSourceMapAsync = promisify(resolveSourceMap); | ||
var resolveSourceMapAsync = promisify(resolve); | ||
@@ -43,3 +43,3 @@ function sourcemaps() { | ||
return _asyncToGenerator(_regeneratorRuntime.mark(function _callee() { | ||
var code, sourceMap, _sourceMap, map; | ||
var code, sourceMap, _sourceMap, map, sourcesContent; | ||
@@ -102,5 +102,10 @@ return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
map = _sourceMap.map; | ||
sourcesContent = _sourceMap.sourcesContent; | ||
map.sourcesContent = sourcesContent; | ||
return _context.abrupt('return', { code: code, map: map }); | ||
case 28: | ||
case 30: | ||
case 'end': | ||
@@ -107,0 +112,0 @@ return _context.stop(); |
@@ -31,3 +31,3 @@ 'use strict'; | ||
var readFileAsync = promisify(fs.readFile); | ||
var resolveSourceMapAsync = promisify(sourceMapResolve.resolveSourceMap); | ||
var resolveSourceMapAsync = promisify(sourceMapResolve.resolve); | ||
@@ -47,3 +47,3 @@ function sourcemaps() { | ||
return _asyncToGenerator(_regeneratorRuntime.mark(function _callee() { | ||
var code, sourceMap, _sourceMap, map; | ||
var code, sourceMap, _sourceMap, map, sourcesContent; | ||
@@ -106,5 +106,10 @@ return _regeneratorRuntime.wrap(function _callee$(_context) { | ||
map = _sourceMap.map; | ||
sourcesContent = _sourceMap.sourcesContent; | ||
map.sourcesContent = sourcesContent; | ||
return _context.abrupt('return', { code: code, map: map }); | ||
case 28: | ||
case 30: | ||
case 'end': | ||
@@ -111,0 +116,0 @@ return _context.stop(); |
{ | ||
"name": "rollup-plugin-sourcemaps", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Rollup plugin for grabbing source maps from sourceMappingURLs", | ||
@@ -5,0 +5,0 @@ "author": "Max Davidson <davidsonmax@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15353
188