Sha256: 7d2253ada772b6c40bdc6677fe48f515ff6879b26cd8bb1a397fdbef88f33938

Contents?: true

Size: 664 Bytes

Versions: 11

Compression:

Stored size: 664 Bytes

Contents

/*
	MIT License http://www.opensource.org/licenses/mit-license.php
	Author Tobias Koppers @sokra
*/
"use strict";
const NullDependency = require("./NullDependency");
const webpackMissingModule = require("./WebpackMissingModule").module;

class UnsupportedDependency extends NullDependency {
	constructor(request, range) {
		super();
		this.request = request;
		this.range = range;
	}
}

UnsupportedDependency.Template = class UnsupportedDependencyTemplate {
	apply(dep, source, outputOptions, requestShortener) {
		source.replace(dep.range[0], dep.range[1], webpackMissingModule(dep.request));
	}
};

module.exports = UnsupportedDependency;

Version data entries

11 entries across 7 versions & 4 rubygems

Version Path
ilog-0.4.1 node_modules/webpack/lib/dependencies/UnsupportedDependency.js
ilog-0.4.0 node_modules/webpack/lib/dependencies/UnsupportedDependency.js
ilog-0.3.3 node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.3 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.3 spec/dummy/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.2 spec/dummy/node_modules/@rails/webpacker/node_modules/webpack/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
optimacms-0.4.2 spec/dummy/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
cortex-0.1.3 spec/dummy/node_modules/webpack/lib/dependencies/UnsupportedDependency.js
lanes-0.8.0 node_modules/webpack/lib/dependencies/UnsupportedDependency.js