From d5f14083061f2ce6a42313188443a42e30796320 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 31 Oct 2023 15:37:35 +0800 Subject: added make browserlist(autoprefixer) work fixed --- node_modules/webpack-sources/lib/SizeOnlySource.js | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 node_modules/webpack-sources/lib/SizeOnlySource.js (limited to 'node_modules/webpack-sources/lib/SizeOnlySource.js') diff --git a/node_modules/webpack-sources/lib/SizeOnlySource.js b/node_modules/webpack-sources/lib/SizeOnlySource.js new file mode 100644 index 00000000..a6e92943 --- /dev/null +++ b/node_modules/webpack-sources/lib/SizeOnlySource.js @@ -0,0 +1,42 @@ +/* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra +*/ +"use strict"; + +const Source = require("./Source"); + +class SizeOnlySource extends Source { + constructor(size) { + super(); + this._size = size; + } + + _error() { + return new Error( + "Content and Map of this Source is not available (only size() is supported)" + ); + } + + size() { + return this._size; + } + + source() { + throw this._error(); + } + + buffer() { + throw this._error(); + } + + map(options) { + throw this._error(); + } + + updateHash() { + throw this._error(); + } +} + +module.exports = SizeOnlySource; -- cgit v1.2.3