UNPKG

atlassian-webresource-webpack-plugin

Version:

Auto-generates web-resource definitions from your webpacked code, for usage in an Atlassian product or plugin.

28 lines 1.1 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const DllModule_1 = __importDefault(require("webpack/lib/DllModule")); const webpack_sources_1 = require("webpack-sources"); /** * This module type allows inclusion of special dependencies in the webpack compilation process * that ultimately output nothing in the compiled bundles. * * This is of use when including certain file types with no associated loader in the compilation process, * as is the case with things like Atlassian Soy templates. */ class EmptyExportsModule extends DllModule_1.default { constructor(dependency, type) { super(null, [], dependency, type); } chunkCondition() { return true; } source() { // eslint-disable-next-line prettier/prettier return new webpack_sources_1.RawSource('module.exports = undefined;'); } } exports.default = EmptyExportsModule; //# sourceMappingURL=EmptyExportsModule.js.map