feat: refactoring project
This commit is contained in:
13
node_modules/webpack/lib/ConditionalInitFragment.js
generated
vendored
13
node_modules/webpack/lib/ConditionalInitFragment.js
generated
vendored
@@ -27,13 +27,12 @@ const wrapInCondition = (condition, source) => {
|
||||
"}",
|
||||
""
|
||||
]);
|
||||
} else {
|
||||
return new ConcatSource(
|
||||
`if (${condition}) {\n`,
|
||||
new PrefixSource("\t", source),
|
||||
"}\n"
|
||||
);
|
||||
}
|
||||
return new ConcatSource(
|
||||
`if (${condition}) {\n`,
|
||||
new PrefixSource("\t", source),
|
||||
"}\n"
|
||||
);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -54,7 +53,7 @@ class ConditionalInitFragment extends InitFragment {
|
||||
position,
|
||||
key,
|
||||
runtimeCondition = true,
|
||||
endContent
|
||||
endContent = undefined
|
||||
) {
|
||||
super(content, stage, position, key, endContent);
|
||||
this.runtimeCondition = runtimeCondition;
|
||||
|
||||
Reference in New Issue
Block a user