webpack-sources
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -64,2 +64,3 @@ /* | ||
} else { | ||
// This will not happen | ||
buffers.push(Buffer.from(bufferOrString, "utf-8")); | ||
@@ -66,0 +67,0 @@ } |
@@ -11,5 +11,4 @@ /* | ||
const Source = require("./Source"); | ||
const splitIntoPotentialTokens = require("./helpers/splitIntoPotentialTokens"); | ||
const SPLIT_REGEX = /[^\n;{}]+[;{} \r\t]*\n?|[;{} \r\t]+\n?|\n/g; | ||
class OriginalSource extends Source { | ||
@@ -65,3 +64,3 @@ constructor(value, name) { | ||
// With column info we need to read all lines and split them | ||
const matches = this._value.match(SPLIT_REGEX); | ||
const matches = splitIntoPotentialTokens(this._value); | ||
let line = 1; | ||
@@ -68,0 +67,0 @@ let column = 0; |
{ | ||
"name": "webpack-sources", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Source code handling classes for webpack", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
91384
27
3077