feat: refactoring project
This commit is contained in:
20
node_modules/webpack/lib/dependencies/CssExportDependency.js
generated
vendored
20
node_modules/webpack/lib/dependencies/CssExportDependency.js
generated
vendored
@@ -58,9 +58,9 @@ class CssExportDependency extends NullDependency {
|
||||
*/
|
||||
getExports(moduleGraph) {
|
||||
const module = /** @type {CssModule} */ (moduleGraph.getParentModule(this));
|
||||
const convention = /** @type {CssGenerator | CssExportsGenerator} */ (
|
||||
module.generator
|
||||
).convention;
|
||||
const convention =
|
||||
/** @type {CssGenerator | CssExportsGenerator} */
|
||||
(module.generator).convention;
|
||||
const names = this.getExportsConventionNames(this.name, convention);
|
||||
return {
|
||||
exports: names.map(name => ({
|
||||
@@ -81,14 +81,14 @@ class CssExportDependency extends NullDependency {
|
||||
const module = /** @type {CssModule} */ (
|
||||
chunkGraph.moduleGraph.getParentModule(this)
|
||||
);
|
||||
const generator = /** @type {CssGenerator | CssExportsGenerator} */ (
|
||||
module.generator
|
||||
);
|
||||
const generator =
|
||||
/** @type {CssGenerator | CssExportsGenerator} */
|
||||
(module.generator);
|
||||
const names = this.getExportsConventionNames(
|
||||
this.name,
|
||||
generator.convention
|
||||
);
|
||||
hash.update(`exportsConvention`);
|
||||
hash.update("exportsConvention");
|
||||
hash.update(JSON.stringify(names));
|
||||
}
|
||||
|
||||
@@ -129,9 +129,9 @@ CssExportDependency.Template = class CssExportDependencyTemplate extends (
|
||||
) {
|
||||
const dep = /** @type {CssExportDependency} */ (dependency);
|
||||
const module = /** @type {CssModule} */ (m);
|
||||
const convention = /** @type {CssGenerator | CssExportsGenerator} */ (
|
||||
module.generator
|
||||
).convention;
|
||||
const convention =
|
||||
/** @type {CssGenerator | CssExportsGenerator} */
|
||||
(module.generator).convention;
|
||||
const names = dep.getExportsConventionNames(dep.name, convention);
|
||||
const usedNames = /** @type {string[]} */ (
|
||||
names
|
||||
|
||||
Reference in New Issue
Block a user