rspack-plugin-cloudflare 0.5.10 → 0.5.12
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.
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/workers/asset-worker/index.js +2 -2
- package/dist/workers/asset-worker/index.js.map +1 -1
- package/dist/workers/router-worker/index.js +2 -2
- package/dist/workers/router-worker/index.js.map +1 -1
- package/package.json +14 -14
package/dist/index.d.ts
CHANGED
|
@@ -50,5 +50,4 @@ export declare class CloudflarePlugin implements RspackPluginInstance {
|
|
|
50
50
|
apply(compiler: Compiler): void;
|
|
51
51
|
}
|
|
52
52
|
export declare function cloudflare(options?: CloudflarePluginOptions): CloudflarePlugin;
|
|
53
|
-
export type { AuxiliaryWorkerOptions, CloudflarePluginOptions, TunnelOptions, WorkerConfig, WorkerConfigCustomizer };
|
|
54
|
-
//# sourceMappingURL=index.d.ts.map
|
|
53
|
+
export type { AuxiliaryWorkerOptions, CloudflarePluginOptions, TunnelOptions, WorkerConfig, WorkerConfigCustomizer };
|
package/dist/index.js
CHANGED
|
@@ -515,7 +515,6 @@ async function resolveAuxiliaryWorker(context, options, auxiliary, clientOutputP
|
|
|
515
515
|
function getWorkerResolvers(context, options, clientOutputPath) {
|
|
516
516
|
return [() => resolveWorker(context, options, clientOutputPath), ...(options.auxiliaryWorkers ?? []).map((auxiliary) => () => resolveAuxiliaryWorker(context, options, auxiliary, clientOutputPath))];
|
|
517
517
|
}
|
|
518
|
-
const miniflare = createRequire(import.meta.resolve("wrangler"))("miniflare");
|
|
519
518
|
// workers-sdk/packages/workers-shared/utils/configuration/constants.ts
|
|
520
519
|
const PERMITTED_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
521
520
|
200,
|
|
@@ -2459,6 +2458,7 @@ const getContentType = (absFilePath) => {
|
|
|
2459
2458
|
if (contentType && contentType.startsWith("text/") && !contentType.includes("charset")) contentType = `${contentType}; charset=utf-8`;
|
|
2460
2459
|
return contentType;
|
|
2461
2460
|
};
|
|
2461
|
+
const miniflare = createRequire(import.meta.resolve("wrangler"))("miniflare");
|
|
2462
2462
|
// src/assets.ts
|
|
2463
2463
|
const ROUTER_WORKER_NAME = "__rspack-plugin-cloudflare-router__";
|
|
2464
2464
|
const ASSET_WORKER_NAME = "__rspack-plugin-cloudflare-assets__";
|