Skip to content

Commit b6a5563

Browse files
authored
fix: make all individual plugin declarations tree-shakeable (#229)
similar to #227
1 parent 4f02f79 commit b6a5563

23 files changed

+23
-23
lines changed

packages/url-loader/src/plugins/abr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export declare namespace AbrPlugin {
1010
}
1111
}
1212

13-
export const AbrPlugin = plugin({
13+
export const AbrPlugin = /* #__PURE__ */ plugin({
1414
name: "Abr",
1515
supports: "video",
1616
inferOwnOptions: {} as AbrPlugin.Options,

packages/url-loader/src/plugins/cropping.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export declare namespace CroppingPlugin {
4848
}
4949
}
5050

51-
export const CroppingPlugin = plugin({
51+
export const CroppingPlugin = /* #__PURE__ */ plugin({
5252
name: "Cropping",
5353
supports: "all",
5454
inferOwnOptions: {} as CroppingPlugin.Options,

packages/url-loader/src/plugins/default-image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export declare namespace DefaultImagePlugin {
1111
}
1212
}
1313

14-
export const DefaultImagePlugin = plugin({
14+
export const DefaultImagePlugin = /* #__PURE__ */ plugin({
1515
name: "DefaultImage",
1616
supports: "image",
1717
inferOwnOptions: {} as DefaultImagePlugin.Options,

packages/url-loader/src/plugins/effects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export declare namespace EffectsPlugin {
1717
}
1818
}
1919

20-
export const EffectsPlugin = plugin({
20+
export const EffectsPlugin = /* #__PURE__ */ plugin({
2121
name: "Effects",
2222
supports: "all",
2323
inferOwnOptions: {} as EffectsPlugin.Options,

packages/url-loader/src/plugins/enhance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export declare namespace EnhancePlugin {
1010
}
1111
}
1212

13-
export const EnhancePlugin = plugin({
13+
export const EnhancePlugin = /* #__PURE__ */ plugin({
1414
name: "Enhance",
1515
supports: "image",
1616
inferOwnOptions: {} as EnhancePlugin.Options,

packages/url-loader/src/plugins/extract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export declare namespace ExtractPlugin {
2323
}
2424
}
2525

26-
export const ExtractPlugin = plugin({
26+
export const ExtractPlugin = /* #__PURE__ */ plugin({
2727
name: "Extract",
2828
supports: "image",
2929
inferOwnOptions: {} as ExtractPlugin.Options,

packages/url-loader/src/plugins/fill-background.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export declare namespace FillBackgroundPlugin {
2424
}
2525
}
2626

27-
export const FillBackgroundPlugin = plugin({
27+
export const FillBackgroundPlugin = /* #__PURE__ */ plugin({
2828
name: "FillBackground",
2929
supports: "image",
3030
inferOwnOptions: {} as FillBackgroundPlugin.Options,

packages/url-loader/src/plugins/flags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export declare namespace FlagsPlugin {
88
}
99
}
1010

11-
export const FlagsPlugin = plugin({
11+
export const FlagsPlugin = /* #__PURE__ */ plugin({
1212
name: "Flags",
1313
supports: "all",
1414
inferOwnOptions: {} as FlagsPlugin.Options,

packages/url-loader/src/plugins/named-transformations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export declare namespace NamedTransformationsPlugin {
1717
}
1818
}
1919

20-
export const NamedTransformationsPlugin = plugin({
20+
export const NamedTransformationsPlugin = /* #__PURE__ */ plugin({
2121
name: "NamedTransformations",
2222
strict: true,
2323
supports: "all",

packages/url-loader/src/plugins/overlays.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const DEFAULT_TEXT_OPTIONS = {
6969
fontWeight: "bold",
7070
};
7171

72-
export const OverlaysPlugin = plugin({
72+
export const OverlaysPlugin = /* #__PURE__ */ plugin({
7373
name: "Overlays",
7474
supports: "all",
7575
inferOwnOptions: {} as OverlaysPlugin.Options,

0 commit comments

Comments
 (0)