@cloudflare/vite-plugin 2.0.0-beta.sha-8c6014f9a → 2.0.0-beta.sha-67fa336fd

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.mjs CHANGED
@@ -87008,6 +87008,14 @@ const resolveExtensions = [
87008
87008
  ".cts",
87009
87009
  ".ctx"
87010
87010
  ];
87011
+ /**
87012
+ * Worker source maps are written to the Worker's build output rather than its
87013
+ * public assets, so emit them by default for readable stack traces. Users can
87014
+ * opt out with Vite's `build.sourcemap`.
87015
+ */
87016
+ function getWorkerSourcemap(userConfig, environmentName) {
87017
+ return userConfig.environments?.[environmentName]?.build?.sourcemap ?? userConfig.build?.sourcemap ?? true;
87018
+ }
87011
87019
  function createCloudflareEnvironmentOptions({ workerConfig, userConfig, mode, environmentName, isParentEnvironment, hasNodeJsCompat: hasNodeJsCompat$1 }) {
87012
87020
  const rollupOptions = isParentEnvironment ? {
87013
87021
  input: { [MAIN_ENTRY_NAME]: VIRTUAL_WORKER_ENTRY },
@@ -87034,6 +87042,7 @@ function createCloudflareEnvironmentOptions({ workerConfig, userConfig, mode, en
87034
87042
  emitAssets: true,
87035
87043
  manifest: isParentEnvironment,
87036
87044
  outDir: getOutputDirectory(userConfig, environmentName),
87045
+ sourcemap: getWorkerSourcemap(userConfig, environmentName),
87037
87046
  copyPublicDir: false,
87038
87047
  ssr: true,
87039
87048
  ...isRolldown ? { rolldownOptions: {
@@ -88417,7 +88426,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
88417
88426
  //#endregion
88418
88427
  //#region ../remote-bindings/dist/index.mjs
88419
88428
  var import_undici = require_undici();
88420
- var version$1 = "0.0.46";
88429
+ var version$1 = "0.0.47";
88421
88430
  var NoDefaultValueProvided = class extends UserError {
88422
88431
  constructor() {
88423
88432
  super("This command cannot be run in a non-interactive context", { telemetryMessage: "remote bindings prompt default missing" });
@@ -89695,6 +89704,7 @@ async function getDevMiniflareOptions(ctx, viteDevServer) {
89695
89704
  {
89696
89705
  config: {
89697
89706
  name: ROUTER_WORKER_NAME,
89707
+ access: entryWorkerConfig?.access,
89698
89708
  compatibilityDate: INTERNAL_WORKERS_COMPATIBILITY_DATE,
89699
89709
  compatibilityFlags: ["enable_ctx_exports"],
89700
89710
  manifest: routerWorkerManifest,