WXL
2025-12-27 05e6b08007a86b5b10c680babc9c3bcc3a1a201b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
    MIT License http://www.opensource.org/licenses/mit-license.php
    Author Alexander Akait @alexander-akait
*/
 
"use strict";
 
const makeSerializable = require("../util/makeSerializable");
const CssIcssExportDependency = require("./CssIcssExportDependency");
 
/** @typedef {import("../css/CssParser").Range} Range */
/** @typedef {import("../ModuleGraph")} ModuleGraph */
/** @typedef {import("../Dependency").ExportsSpec} ExportsSpec */
 
class CssIcssGlobalIdentifierDependency extends CssIcssExportDependency {
    /**
     * @param {string} name export identifier name
     * @param {string} value identifier value
     * @param {string | undefined} reexport reexport name
     * @param {Range} range the range of dependency
     */
    constructor(name, value, reexport, range) {
        super(name, value, reexport, range);
        this.exportMode = CssIcssExportDependency.EXPORT_MODE.APPEND;
    }
 
    get type() {
        return "css global identifier";
    }
 
    /**
     * Returns the exported names
     * @param {ModuleGraph} moduleGraph module graph
     * @returns {ExportsSpec | undefined} export names
     */
    getExports(moduleGraph) {
        return undefined;
    }
}
 
CssIcssGlobalIdentifierDependency.Template = CssIcssExportDependency.Template;
 
makeSerializable(
    CssIcssGlobalIdentifierDependency,
    "webpack/lib/dependencies/CssIcssGlobalDependency"
);
 
module.exports = CssIcssGlobalIdentifierDependency;