@cloudflare/vite-plugin 1.13.14 → 1.13.16
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 +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -6
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -20,8 +20,6 @@ interface AuxiliaryWorkerConfig extends BaseWorkerConfig {
|
|
|
20
20
|
interface Experimental {
|
|
21
21
|
/** Experimental support for handling the _headers and _redirects files during Vite dev mode. */
|
|
22
22
|
headersAndRedirectsDevModeSupport?: boolean;
|
|
23
|
-
/** Experimental support for remote bindings (where bindings configured with `remote: true` access remote resources). */
|
|
24
|
-
remoteBindings?: boolean;
|
|
25
23
|
}
|
|
26
24
|
interface PluginConfig extends EntryWorkerConfig {
|
|
27
25
|
auxiliaryWorkers?: AuxiliaryWorkerConfig[];
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/plugin-config.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;AA0BU,KANE,YAAA,GAMgB,OAAQ,GAAA;EAI1B,IAAA,EAAA,MAAA;AAA8C,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/plugin-config.ts","../src/index.ts"],"sourcesContent":[],"mappings":";;;;;AA0BU,KANE,YAAA,GAMgB,OAAQ,GAAA;EAI1B,IAAA,EAAA,MAAA;AAA8C,CAAA;AASxD,UAjBU,gBAAA,CAiBoB;EAAA,eAAA,CAAA,EAAA;IACV,IAAA,CAAA,EAAA,MAAA;;;UAdV,iBAAA,SAA0B,gBAaE,CAAA;EAAiB,UAAA,CAAA,EAAA,MAAA;;UAT7C,qBAAA,SAA8B;;AC+CxC;UD3CU,YAAA,CC2CgB;;mCAAwC,CAAA,EAAA,OAAA;;UDtCjD,YAAA,SAAqB;qBAClB;iBACJ;;iBAEA;;;;;AAvBhB;AAAsD;AAE5B;AAI0B;AAII;AASxD;AAA8B,iBCsCd,UAAA,CDtCc,YAAA,CAAA,ECsCW,YDtCX,CAAA,ECsC+B,IAAA,CAAK,MDtCpC,EAAA"}
|
package/dist/index.js
CHANGED
|
@@ -8479,10 +8479,10 @@ async function getDevMiniflareOptions(config) {
|
|
|
8479
8479
|
const workersFromConfig = resolvedPluginConfig.type === "workers" ? await Promise.all(Object.entries(resolvedPluginConfig.workers).map(async ([environmentName, workerConfig]) => {
|
|
8480
8480
|
const bindings = unstable_convertConfigBindingsToStartWorkerBindings(workerConfig);
|
|
8481
8481
|
const preExistingRemoteProxySession = workerConfig.configPath ? remoteProxySessionsDataMap.get(workerConfig.configPath) : void 0;
|
|
8482
|
-
const remoteProxySessionData =
|
|
8482
|
+
const remoteProxySessionData = await maybeStartOrUpdateRemoteProxySession({
|
|
8483
8483
|
name: workerConfig.name,
|
|
8484
8484
|
bindings: bindings ?? {}
|
|
8485
|
-
}, preExistingRemoteProxySession ?? null)
|
|
8485
|
+
}, preExistingRemoteProxySession ?? null);
|
|
8486
8486
|
if (workerConfig.configPath && remoteProxySessionData) remoteProxySessionsDataMap.set(workerConfig.configPath, remoteProxySessionData);
|
|
8487
8487
|
let containerBuildId;
|
|
8488
8488
|
if (workerConfig.containers?.length && workerConfig.dev.enable_containers) {
|
|
@@ -8501,7 +8501,6 @@ async function getDevMiniflareOptions(config) {
|
|
|
8501
8501
|
assets: void 0
|
|
8502
8502
|
}, resolvedPluginConfig.cloudflareEnv, {
|
|
8503
8503
|
remoteProxyConnectionString: remoteProxySessionData?.session?.remoteProxyConnectionString,
|
|
8504
|
-
remoteBindingsEnabled: resolvedPluginConfig.experimental.remoteBindings ?? true,
|
|
8505
8504
|
containerBuildId
|
|
8506
8505
|
});
|
|
8507
8506
|
const { externalWorkers: externalWorkers$1 } = miniflareWorkerOptions;
|
|
@@ -8651,10 +8650,10 @@ async function getPreviewMiniflareOptions(config) {
|
|
|
8651
8650
|
const workers = (await Promise.all(resolvedPluginConfig.workers.map(async (workerConfig, i$1) => {
|
|
8652
8651
|
const bindings = unstable_convertConfigBindingsToStartWorkerBindings(workerConfig);
|
|
8653
8652
|
const preExistingRemoteProxySessionData = workerConfig.configPath ? remoteProxySessionsDataMap.get(workerConfig.configPath) : void 0;
|
|
8654
|
-
const remoteProxySessionData =
|
|
8653
|
+
const remoteProxySessionData = await maybeStartOrUpdateRemoteProxySession({
|
|
8655
8654
|
name: workerConfig.name,
|
|
8656
8655
|
bindings: bindings ?? {}
|
|
8657
|
-
}, preExistingRemoteProxySessionData ?? null)
|
|
8656
|
+
}, preExistingRemoteProxySessionData ?? null);
|
|
8658
8657
|
if (workerConfig.configPath && remoteProxySessionData) remoteProxySessionsDataMap.set(workerConfig.configPath, remoteProxySessionData);
|
|
8659
8658
|
let containerBuildId;
|
|
8660
8659
|
if (workerConfig.containers?.length && workerConfig.dev.enable_containers) {
|
|
@@ -8670,7 +8669,6 @@ async function getPreviewMiniflareOptions(config) {
|
|
|
8670
8669
|
}
|
|
8671
8670
|
const miniflareWorkerOptions = unstable_getMiniflareWorkerOptions(workerConfig, void 0, {
|
|
8672
8671
|
remoteProxyConnectionString: remoteProxySessionData?.session?.remoteProxyConnectionString,
|
|
8673
|
-
remoteBindingsEnabled: resolvedPluginConfig.experimental.remoteBindings ?? true,
|
|
8674
8672
|
containerBuildId
|
|
8675
8673
|
});
|
|
8676
8674
|
const { externalWorkers } = miniflareWorkerOptions;
|