github cloudflare/workers-sdk @cloudflare/vite-plugin@1.19.0

latest releases: create-cloudflare@2.61.0, @cloudflare/pages-shared@0.13.95, miniflare@4.20251217.0...
17 hours ago

Minor Changes

  • #11670 3483b84 Thanks @jamesopstad! - Provide the resolved entry Worker config in the second parameter to the auxiliary Worker config function. This makes it straightforward to inherit configuration from the entry Worker in auxiliary Workers.

    Example:

    export default defineConfig({
    	plugins: [
    		cloudflare({
    			auxiliaryWorkers: [
    				{
    					config: (_, { entryWorkerConfig }) => ({
    						name: "auxiliary-worker",
    						main: "./src/auxiliary-worker.ts",
    						// Inherit compatibility settings from entry Worker
    						compatibility_date: entryWorkerConfig.compatibility_date,
    						compatibility_flags: entryWorkerConfig.compatibility_flags,
    					}),
    				},
    			],
    		}),
    	],
    });

Patch Changes

Don't miss a new workers-sdk release

NewReleases is sending notifications on new releases.