@cloudflare/vite-plugin 1.56.0 → 1.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- //#region ../config/dist/public-Dyr8BJqf.mjs
1
+ //#region ../config/dist/public-BMg6-Hxh.mjs
2
2
  const bindings = {
3
3
  agentMemory: (options) => ({
4
4
  type: "agent-memory",
@@ -130,17 +130,21 @@ const bindings = {
130
130
  *
131
131
  * @example
132
132
  * ```typescript
133
- * import { defineWorker, triggers } from "@cloudflare/config";
133
+ * import { defineConfig, triggers } from "@cloudflare/config";
134
134
  *
135
- * export default defineWorker({
136
- * triggers: [
137
- * triggers.fetch({ pattern: "example.com/*", zone: "example.com" }),
138
- * triggers.queue({ name: "my-queue" }),
139
- * triggers.scheduled({ schedule: "0 * * * *" }),
140
- * triggers.scheduled({ schedule: "30 0 * * *" }),
141
- * triggers.email({ addresses: ["support@example.com"] }),
142
- * triggers.connect({ protocol: "tcp", port: 5432 }),
143
- * ],
135
+ * export default defineConfig({
136
+ * worker: {
137
+ * name: "my-worker",
138
+ * compatibilityDate: "2026-09-17",
139
+ * triggers: [
140
+ * triggers.fetch({ pattern: "example.com/*", zone: "example.com" }),
141
+ * triggers.queue({ name: "my-queue" }),
142
+ * triggers.scheduled({ schedule: "0 * * * *" }),
143
+ * triggers.scheduled({ schedule: "30 0 * * *" }),
144
+ * triggers.email({ addresses: ["support@example.com"] }),
145
+ * triggers.connect({ protocol: "tcp", port: 5432 }),
146
+ * ],
147
+ * },
144
148
  * });
145
149
  * ```
146
150
  */
@@ -183,14 +187,14 @@ function worker(options = {}) {
183
187
  *
184
188
  * @example
185
189
  * ```typescript
186
- * import { defineContainer, defineWorker, exports } from "@cloudflare/config";
190
+ * import { defineConfig, defineContainer, defineWorker, exports } from "@cloudflare/config";
187
191
  *
188
192
  * const myContainer = defineContainer({
189
193
  * name: "my-container",
190
194
  * image: { dockerfile: "./Dockerfile" },
191
195
  * });
192
196
  *
193
- * export default defineWorker({
197
+ * const worker = defineWorker({
194
198
  * exports: {
195
199
  * MyDurableObject: exports.durableObject({ storage: "sqlite" }),
196
200
  * MyContainerDO: exports.durableObject({ storage: "sqlite", container: myContainer }),
@@ -200,42 +204,65 @@ function worker(options = {}) {
200
204
  * Incoming: exports.durableObject({ state: "expecting-transfer", storage: "sqlite", transferFrom: "source-worker" }),
201
205
  * },
202
206
  * });
207
+ *
208
+ * export default defineConfig({ worker, containers: [myContainer] });
203
209
  * ```
204
210
  */
205
211
  const exports = {
206
212
  durableObject,
207
213
  worker
208
214
  };
209
- /** Add a config type while preserving its value, promise, or function shape. */
210
- function addConfigType(config, type) {
211
- function addType(value) {
212
- return {
213
- ...value,
214
- type
215
- };
216
- }
217
- if (typeof config === "function") return (ctx) => {
218
- const result = config(ctx);
219
- return result instanceof Promise ? result.then(addType) : addType(result);
215
+ /** Create a type-safe identity helper for a configuration value or factory. */
216
+ function createConfigDefiner() {
217
+ return function define(config) {
218
+ return config;
220
219
  };
221
- return config instanceof Promise ? config.then(addType) : addType(config);
222
220
  }
223
- /** Create a type-safe config helper for a particular export type. */
224
- function createConfigDefiner(type) {
225
- function define(config) {
226
- return addConfigType(config, type);
227
- }
228
- return define;
229
- }
230
- /** Declare a Container application. */
231
- const defineContainer = createConfigDefiner("container");
232
- const defineWorker = createConfigDefiner("worker");
233
221
  /**
234
- * Declare shared settings.
235
- * Authored as a named `settings` export.
222
+ * Used to define the default export in `cloudflare.config.ts`.
223
+ *
224
+ * @example
225
+ * ```typescript
226
+ * import { defineConfig } from "@cloudflare/config";
227
+ *
228
+ * export default defineConfig({
229
+ * worker: {
230
+ * name: "my-worker",
231
+ * compatibilityDate: "2026-09-17",
232
+ * },
233
+ * });
234
+ * ```
235
+ */
236
+ const defineConfig = createConfigDefiner();
237
+ /**
238
+ * Define a Container.
239
+ *
240
+ * @example
241
+ * ```typescript
242
+ * import { defineContainer } from "@cloudflare/config";
243
+ *
244
+ * const container = defineContainer({
245
+ * name: "my-container",
246
+ * image: { dockerfile: "./Dockerfile" },
247
+ * });
248
+ * ```
249
+ */
250
+ const defineContainer = createConfigDefiner();
251
+ /**
252
+ * Define a Worker.
253
+ *
254
+ * @example
255
+ * ```typescript
256
+ * import { defineWorker } from "@cloudflare/config";
257
+ *
258
+ * const worker = defineWorker({
259
+ * name: "my-worker",
260
+ * compatibilityDate: "2026-09-17",
261
+ * });
262
+ * ```
236
263
  */
237
- const defineSettings = createConfigDefiner("settings");
264
+ const defineWorker = createConfigDefiner();
238
265
 
239
266
  //#endregion
240
- export { bindings, defineContainer, defineSettings, defineWorker, exports, triggers };
267
+ export { bindings, defineConfig, defineContainer, defineWorker, exports, triggers };
241
268
  //# sourceMappingURL=experimental-config.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"experimental-config.mjs","names":[],"sources":["../../config/dist/public-Dyr8BJqf.mjs"],"sourcesContent":["//#region src/bindings.ts\nconst bindings = {\n\tagentMemory: (options) => ({\n\t\ttype: \"agent-memory\",\n\t\t...options\n\t}),\n\tai: (options) => ({\n\t\ttype: \"ai\",\n\t\t...options\n\t}),\n\taiSearch: (options) => ({\n\t\ttype: \"ai-search\",\n\t\t...options\n\t}),\n\taiSearchNamespace: (options) => ({\n\t\ttype: \"ai-search-namespace\",\n\t\t...options\n\t}),\n\tanalyticsEngineDataset: (options) => ({\n\t\ttype: \"analytics-engine-dataset\",\n\t\t...options\n\t}),\n\tartifacts: (options) => ({\n\t\ttype: \"artifacts\",\n\t\t...options\n\t}),\n\tassets: () => ({ type: \"assets\" }),\n\tbrowser: (options) => ({\n\t\ttype: \"browser\",\n\t\t...options\n\t}),\n\td1: (options) => ({\n\t\ttype: \"d1\",\n\t\t...options\n\t}),\n\tdispatchNamespace: (options) => ({\n\t\ttype: \"dispatch-namespace\",\n\t\t...options\n\t}),\n\tdurableObject: (options) => ({\n\t\ttype: \"durable-object\",\n\t\t...options\n\t}),\n\tflagship: (options) => ({\n\t\ttype: \"flagship\",\n\t\t...options\n\t}),\n\thyperdrive: (options) => ({\n\t\ttype: \"hyperdrive\",\n\t\t...options\n\t}),\n\timages: (options) => ({\n\t\ttype: \"images\",\n\t\t...options\n\t}),\n\tjson: (value) => ({\n\t\ttype: \"json\",\n\t\tvalue\n\t}),\n\tkv: (options) => ({\n\t\ttype: \"kv\",\n\t\t...options\n\t}),\n\tlogfwdr: (options) => ({\n\t\ttype: \"logfwdr\",\n\t\t...options\n\t}),\n\tmedia: (options) => ({\n\t\ttype: \"media\",\n\t\t...options\n\t}),\n\tmtlsCertificate: (options) => ({\n\t\ttype: \"mtls-certificate\",\n\t\t...options\n\t}),\n\tpipeline: (options) => ({\n\t\ttype: \"pipeline\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\trateLimit: (options) => ({\n\t\ttype: \"rate-limit\",\n\t\t...options\n\t}),\n\tr2: (options) => ({\n\t\ttype: \"r2\",\n\t\t...options\n\t}),\n\tsecret: () => ({ type: \"secret\" }),\n\tsecretsStoreSecret: (options) => ({\n\t\ttype: \"secrets-store-secret\",\n\t\t...options\n\t}),\n\tsendEmail: (options) => ({\n\t\ttype: \"send-email\",\n\t\t...options\n\t}),\n\tstream: (options) => ({\n\t\ttype: \"stream\",\n\t\t...options\n\t}),\n\ttext: (value) => ({\n\t\ttype: \"text\",\n\t\tvalue\n\t}),\n\tvectorize: (options) => ({\n\t\ttype: \"vectorize\",\n\t\t...options\n\t}),\n\tversionMetadata: () => ({ type: \"version-metadata\" }),\n\tvpcService: (options) => ({\n\t\ttype: \"vpc-service\",\n\t\t...options\n\t}),\n\tvpcNetwork: (options) => ({\n\t\ttype: \"vpc-network\",\n\t\t...options\n\t}),\n\tworker: (options) => ({\n\t\ttype: \"worker\",\n\t\t...options\n\t}),\n\tworkerLoader: () => ({ type: \"worker-loader\" })\n};\n\n//#endregion\n//#region src/triggers.ts\n/**\n* Triggers builder for configuring event triggers.\n*\n* @example\n* ```typescript\n* import { defineWorker, triggers } from \"@cloudflare/config\";\n*\n* export default defineWorker({\n* triggers: [\n* triggers.fetch({ pattern: \"example.com/*\", zone: \"example.com\" }),\n* triggers.queue({ name: \"my-queue\" }),\n* triggers.scheduled({ schedule: \"0 * * * *\" }),\n* triggers.scheduled({ schedule: \"30 0 * * *\" }),\n* triggers.email({ addresses: [\"support@example.com\"] }),\n* triggers.connect({ protocol: \"tcp\", port: 5432 }),\n* ],\n* });\n* ```\n*/\nconst triggers = {\n\tfetch: (options) => ({\n\t\ttype: \"fetch\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\tscheduled: (options) => ({\n\t\ttype: \"scheduled\",\n\t\t...options\n\t}),\n\temail: (options) => ({\n\t\ttype: \"email\",\n\t\t...options\n\t}),\n\tconnect: (options) => ({\n\t\ttype: \"connect\",\n\t\t...options\n\t})\n};\n\n//#endregion\n//#region src/exports.ts\nfunction durableObject(options) {\n\treturn {\n\t\ttype: \"durable-object\",\n\t\t...options\n\t};\n}\nfunction worker(options = {}) {\n\treturn {\n\t\ttype: \"worker\",\n\t\t...options\n\t};\n}\n/**\n* Exports builder for configuring Worker exports.\n*\n* @example\n* ```typescript\n* import { defineContainer, defineWorker, exports } from \"@cloudflare/config\";\n*\n* const myContainer = defineContainer({\n* name: \"my-container\",\n* image: { dockerfile: \"./Dockerfile\" },\n* });\n*\n* export default defineWorker({\n* exports: {\n* MyDurableObject: exports.durableObject({ storage: \"sqlite\" }),\n* MyContainerDO: exports.durableObject({ storage: \"sqlite\", container: myContainer }),\n* OldClass: exports.durableObject({ state: \"deleted\" }),\n* OldName: exports.durableObject({ state: \"renamed\", renamedTo: \"NewName\" }),\n* Outgoing: exports.durableObject({ state: \"transferred\", transferredTo: \"target-worker\" }),\n* Incoming: exports.durableObject({ state: \"expecting-transfer\", storage: \"sqlite\", transferFrom: \"source-worker\" }),\n* },\n* });\n* ```\n*/\nconst exports = {\n\tdurableObject,\n\tworker\n};\n\n//#endregion\n//#region src/definition.ts\n/** Add a config type while preserving its value, promise, or function shape. */\nfunction addConfigType(config, type) {\n\tfunction addType(value) {\n\t\treturn {\n\t\t\t...value,\n\t\t\ttype\n\t\t};\n\t}\n\tif (typeof config === \"function\") return (ctx) => {\n\t\tconst result = config(ctx);\n\t\treturn result instanceof Promise ? result.then(addType) : addType(result);\n\t};\n\treturn config instanceof Promise ? config.then(addType) : addType(config);\n}\n/** Create a type-safe config helper for a particular export type. */\nfunction createConfigDefiner(type) {\n\tfunction define(config) {\n\t\treturn addConfigType(config, type);\n\t}\n\treturn define;\n}\n\n//#endregion\n//#region src/container-definition.ts\n/** Declare a Container application. */\nconst defineContainer = createConfigDefiner(\"container\");\n\n//#endregion\n//#region src/worker-definition.ts\nconst defineWorker = createConfigDefiner(\"worker\");\n\n//#endregion\n//#region src/settings-definition.ts\n/**\n* Declare shared settings.\n* Authored as a named `settings` export.\n*/\nconst defineSettings = createConfigDefiner(\"settings\");\n\n//#endregion\nexport { triggers as a, exports as i, defineWorker as n, bindings as o, defineContainer as r, defineSettings as t };"],"mappings":";AACA,MAAM,WAAW;CAChB,cAAc,aAAa;EAC1B,MAAM;EACN,GAAG;EACH;CACD,KAAK,aAAa;EACjB,MAAM;EACN,GAAG;EACH;CACD,WAAW,aAAa;EACvB,MAAM;EACN,GAAG;EACH;CACD,oBAAoB,aAAa;EAChC,MAAM;EACN,GAAG;EACH;CACD,yBAAyB,aAAa;EACrC,MAAM;EACN,GAAG;EACH;CACD,YAAY,aAAa;EACxB,MAAM;EACN,GAAG;EACH;CACD,eAAe,EAAE,MAAM,UAAU;CACjC,UAAU,aAAa;EACtB,MAAM;EACN,GAAG;EACH;CACD,KAAK,aAAa;EACjB,MAAM;EACN,GAAG;EACH;CACD,oBAAoB,aAAa;EAChC,MAAM;EACN,GAAG;EACH;CACD,gBAAgB,aAAa;EAC5B,MAAM;EACN,GAAG;EACH;CACD,WAAW,aAAa;EACvB,MAAM;EACN,GAAG;E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AAS,cAAc,SAAS;AAC/B,QAAO;EACN,MAAM;EACN,GAAG;EACH;;AAEF,SAAS,OAAO,UAAU,EAAE,EAAE;AAC7B,QAAO;EACN,MAAM;EACN,GAAG;EACH;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BF,MAAM,UAAU;CACf;CACA;CACA;;AAKD,SAAS,cAAc,QAAQ,MAAM;CACpC,SAAS,QAAQ,OAAO;AACvB,SAAO;GACN,GAAG;GACH;GACA;;AAEF,KAAI,OAAO,WAAW,WAAY,SAAQ,QAAQ;EACjD,MAAM,SAAS,OAAO,IAAI;AAC1B,SAAO,kBAAkB,UAAU,OAAO,KAAK,QAAQ,GAAG,QAAQ,OAAO;;AAE1E,QAAO,kBAAkB,UAAU,OAAO,KAAK,QAAQ,GAAG,QAAQ,OAAO;;;AAG1E,SAAS,oBAAoB,MAAM;CAClC,SAAS,OAAO,QAAQ;AACvB,SAAO,cAAc,QAAQ,KAAK;;AAEnC,QAAO;;;AAMR,MAAM,kBAAkB,oBAAoB,YAAY;AAIxD,MAAM,eAAe,oBAAoB,SAAS;;;;;AAQlD,MAAM,iBAAiB,oBAAoB,WAAW"}
1
+ {"version":3,"file":"experimental-config.mjs","names":[],"sources":["../../config/dist/public-BMg6-Hxh.mjs"],"sourcesContent":["//#region src/bindings.ts\nconst bindings = {\n\tagentMemory: (options) => ({\n\t\ttype: \"agent-memory\",\n\t\t...options\n\t}),\n\tai: (options) => ({\n\t\ttype: \"ai\",\n\t\t...options\n\t}),\n\taiSearch: (options) => ({\n\t\ttype: \"ai-search\",\n\t\t...options\n\t}),\n\taiSearchNamespace: (options) => ({\n\t\ttype: \"ai-search-namespace\",\n\t\t...options\n\t}),\n\tanalyticsEngineDataset: (options) => ({\n\t\ttype: \"analytics-engine-dataset\",\n\t\t...options\n\t}),\n\tartifacts: (options) => ({\n\t\ttype: \"artifacts\",\n\t\t...options\n\t}),\n\tassets: () => ({ type: \"assets\" }),\n\tbrowser: (options) => ({\n\t\ttype: \"browser\",\n\t\t...options\n\t}),\n\td1: (options) => ({\n\t\ttype: \"d1\",\n\t\t...options\n\t}),\n\tdispatchNamespace: (options) => ({\n\t\ttype: \"dispatch-namespace\",\n\t\t...options\n\t}),\n\tdurableObject: (options) => ({\n\t\ttype: \"durable-object\",\n\t\t...options\n\t}),\n\tflagship: (options) => ({\n\t\ttype: \"flagship\",\n\t\t...options\n\t}),\n\thyperdrive: (options) => ({\n\t\ttype: \"hyperdrive\",\n\t\t...options\n\t}),\n\timages: (options) => ({\n\t\ttype: \"images\",\n\t\t...options\n\t}),\n\tjson: (value) => ({\n\t\ttype: \"json\",\n\t\tvalue\n\t}),\n\tkv: (options) => ({\n\t\ttype: \"kv\",\n\t\t...options\n\t}),\n\tlogfwdr: (options) => ({\n\t\ttype: \"logfwdr\",\n\t\t...options\n\t}),\n\tmedia: (options) => ({\n\t\ttype: \"media\",\n\t\t...options\n\t}),\n\tmtlsCertificate: (options) => ({\n\t\ttype: \"mtls-certificate\",\n\t\t...options\n\t}),\n\tpipeline: (options) => ({\n\t\ttype: \"pipeline\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\trateLimit: (options) => ({\n\t\ttype: \"rate-limit\",\n\t\t...options\n\t}),\n\tr2: (options) => ({\n\t\ttype: \"r2\",\n\t\t...options\n\t}),\n\tsecret: () => ({ type: \"secret\" }),\n\tsecretsStoreSecret: (options) => ({\n\t\ttype: \"secrets-store-secret\",\n\t\t...options\n\t}),\n\tsendEmail: (options) => ({\n\t\ttype: \"send-email\",\n\t\t...options\n\t}),\n\tstream: (options) => ({\n\t\ttype: \"stream\",\n\t\t...options\n\t}),\n\ttext: (value) => ({\n\t\ttype: \"text\",\n\t\tvalue\n\t}),\n\tvectorize: (options) => ({\n\t\ttype: \"vectorize\",\n\t\t...options\n\t}),\n\tversionMetadata: () => ({ type: \"version-metadata\" }),\n\tvpcService: (options) => ({\n\t\ttype: \"vpc-service\",\n\t\t...options\n\t}),\n\tvpcNetwork: (options) => ({\n\t\ttype: \"vpc-network\",\n\t\t...options\n\t}),\n\tworker: (options) => ({\n\t\ttype: \"worker\",\n\t\t...options\n\t}),\n\tworkerLoader: () => ({ type: \"worker-loader\" })\n};\n\n//#endregion\n//#region src/triggers.ts\n/**\n* Triggers builder for configuring event triggers.\n*\n* @example\n* ```typescript\n* import { defineConfig, triggers } from \"@cloudflare/config\";\n*\n* export default defineConfig({\n* worker: {\n* name: \"my-worker\",\n* compatibilityDate: \"2026-09-17\",\n* triggers: [\n* triggers.fetch({ pattern: \"example.com/*\", zone: \"example.com\" }),\n* triggers.queue({ name: \"my-queue\" }),\n* triggers.scheduled({ schedule: \"0 * * * *\" }),\n* triggers.scheduled({ schedule: \"30 0 * * *\" }),\n* triggers.email({ addresses: [\"support@example.com\"] }),\n* triggers.connect({ protocol: \"tcp\", port: 5432 }),\n* ],\n* },\n* });\n* ```\n*/\nconst triggers = {\n\tfetch: (options) => ({\n\t\ttype: \"fetch\",\n\t\t...options\n\t}),\n\tqueue: (options) => ({\n\t\ttype: \"queue\",\n\t\t...options\n\t}),\n\tscheduled: (options) => ({\n\t\ttype: \"scheduled\",\n\t\t...options\n\t}),\n\temail: (options) => ({\n\t\ttype: \"email\",\n\t\t...options\n\t}),\n\tconnect: (options) => ({\n\t\ttype: \"connect\",\n\t\t...options\n\t})\n};\n\n//#endregion\n//#region src/exports.ts\nfunction durableObject(options) {\n\treturn {\n\t\ttype: \"durable-object\",\n\t\t...options\n\t};\n}\nfunction worker(options = {}) {\n\treturn {\n\t\ttype: \"worker\",\n\t\t...options\n\t};\n}\n/**\n* Exports builder for configuring Worker exports.\n*\n* @example\n* ```typescript\n* import { defineConfig, defineContainer, defineWorker, exports } from \"@cloudflare/config\";\n*\n* const myContainer = defineContainer({\n* name: \"my-container\",\n* image: { dockerfile: \"./Dockerfile\" },\n* });\n*\n* const worker = defineWorker({\n* exports: {\n* MyDurableObject: exports.durableObject({ storage: \"sqlite\" }),\n* MyContainerDO: exports.durableObject({ storage: \"sqlite\", container: myContainer }),\n* OldClass: exports.durableObject({ state: \"deleted\" }),\n* OldName: exports.durableObject({ state: \"renamed\", renamedTo: \"NewName\" }),\n* Outgoing: exports.durableObject({ state: \"transferred\", transferredTo: \"target-worker\" }),\n* Incoming: exports.durableObject({ state: \"expecting-transfer\", storage: \"sqlite\", transferFrom: \"source-worker\" }),\n* },\n* });\n*\n* export default defineConfig({ worker, containers: [myContainer] });\n* ```\n*/\nconst exports = {\n\tdurableObject,\n\tworker\n};\n\n//#endregion\n//#region src/definition.ts\n/** Create a type-safe identity helper for a configuration value or factory. */\nfunction createConfigDefiner() {\n\treturn function define(config) {\n\t\treturn config;\n\t};\n}\n/**\n* Used to define the default export in `cloudflare.config.ts`.\n*\n* @example\n* ```typescript\n* import { defineConfig } from \"@cloudflare/config\";\n*\n* export default defineConfig({\n* worker: {\n* name: \"my-worker\",\n* compatibilityDate: \"2026-09-17\",\n* },\n* });\n* ```\n*/\nconst defineConfig = createConfigDefiner();\n/**\n* Define a Container.\n*\n* @example\n* ```typescript\n* import { defineContainer } from \"@cloudflare/config\";\n*\n* const container = defineContainer({\n* name: \"my-container\",\n* image: { dockerfile: \"./Dockerfile\" },\n* });\n* ```\n*/\nconst defineContainer = createConfigDefiner();\n/**\n* Define a Worker.\n*\n* @example\n* ```typescript\n* import { defineWorker } from \"@cloudflare/config\";\n*\n* const worker = defineWorker({\n* name: \"my-worker\",\n* compatibilityDate: \"2026-09-17\",\n* });\n* ```\n*/\nconst defineWorker = createConfigDefiner();\n\n//#endregion\nexport { triggers as a, exports as i, defineContainer as n, bindings as o, defineWorker as r, defineConfig as t };"],"mappings":";AACA,MAAM,WAAW;CAChB,cAAc,aAAa;EAC1B,MAAM;EACN,GAAG;EACH;CACD,KAAK,aAAa;EACjB,MAAM;EACN,GAAG;EACH;CACD,WAAW,aAAa;EACvB,MAAM;EACN,GAAG;EACH;CACD,oBAAoB,aAAa;EAChC,MAAM;EACN,GAAG;EACH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ACrB,MAAM;EACN,GAAG;EACH;CACD,qBAAqB,EAAE,MAAM,iBAAiB;CAC9C;;;;;;;;;;;;;;;;;;;;;;;;AA2BD,MAAM,WAAW;CAChB,QAAQ,aAAa;EACpB,MAAM;EACN,GAAG;EACH;CACD,QAAQ,aAAa;EACpB,MAAM;EACN,GAAG;EACH;CACD,YAAY,aAAa;EACxB,MAAM;EACN,GAAG;EACH;CACD,QAAQ,aAAa;EACpB,MAAM;EACN,GAAG;EACH;CACD,UAAU,aAAa;EACtB,MAAM;EACN,GAAG;EACH;CACD;AAID,SAAS,cAAc,SAAS;AAC/B,QAAO;EACN,MAAM;EACN,GAAG;EACH;;AAEF,SAAS,OAAO,UAAU,EAAE,EAAE;AAC7B,QAAO;EACN,MAAM;EACN,GAAG;EACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BF,MAAM,UAAU;CACf;CACA;CACA;;AAKD,SAAS,sBAAsB;AAC9B,QAAO,SAAS,OAAO,QAAQ;AAC9B,SAAO;;;;;;;;;;;;;;;;;;AAkBT,MAAM,eAAe,qBAAqB;;;;;;;;;;;;;;AAc1C,MAAM,kBAAkB,qBAAqB;;;;;;;;;;;;;;AAc7C,MAAM,eAAe,qBAAqB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/utils.ts","../src/workers-configs.ts","../src/plugin-config.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;ACsDK,KDEO,OCFP,CAAA,CAAA,CAAA,GDEoB,OCFpB,CDE4B,CCF5B,EAAA,SAA8B,CAAA;;;;AAE9B,KAzBO,YAAA,GAAe,IAyBH,CAzBQ,eA0B7B,EAAA,MA1BoD,mBA2BpD,CAAA;KAJE,8BAAA,UAAwC;ACN7C,KDQK,mBAAA,GACF,iCCTqB,GDUrB,8BCVqB;AACxB,KDWK,iCAAA,GCXmB,MDYjB,8BCZiB,CAAA,gBAAA,CAAA;AAGtB,KDWG,8BAAA,GACJ,8BCVyB,CAAA,aAAA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