настройка webpack
This commit is contained in:
38
node_modules/webpack-sources/lib/RawSource.js
generated
vendored
Normal file
38
node_modules/webpack-sources/lib/RawSource.js
generated
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
"use strict";
|
||||
|
||||
var Source = require("./Source");
|
||||
var SourceNode = require("source-map").SourceNode;
|
||||
var SourceListMap = require("source-list-map").SourceListMap;
|
||||
|
||||
class RawSource extends Source {
|
||||
constructor(value) {
|
||||
super();
|
||||
this._value = value;
|
||||
}
|
||||
|
||||
source() {
|
||||
return this._value;
|
||||
}
|
||||
|
||||
map(options) {
|
||||
return null;
|
||||
}
|
||||
|
||||
node(options) {
|
||||
return new SourceNode(null, null, null, this._value);
|
||||
}
|
||||
|
||||
listMap(options) {
|
||||
return new SourceListMap(this._value);
|
||||
}
|
||||
|
||||
updateHash(hash) {
|
||||
hash.update(this._value);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = RawSource;
|
||||
Reference in New Issue
Block a user