Skip to content

build(deps-dev): bump @cloudflare/vite-plugin from 1.39.2 to 1.40.0#558

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/cloudflare/vite-plugin-1.40.0
Jun 15, 2026
Merged

build(deps-dev): bump @cloudflare/vite-plugin from 1.39.2 to 1.40.0#558
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/cloudflare/vite-plugin-1.40.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 15, 2026

Copy link
Copy Markdown
Contributor

Bumps @cloudflare/vite-plugin from 1.39.2 to 1.40.0.

Release notes

Sourced from @​cloudflare/vite-plugin's releases.

@​cloudflare/vite-plugin@​1.40.0

Minor Changes

  • #14013 3cf9d0e Thanks @​jamesopstad! - Add experimental experimental.newConfig option to load the entry Worker's configuration from cloudflare.config.ts

    This is an experimental, opt-in feature. When enabled, the plugin loads the entry Worker's configuration from a cloudflare.config.ts file instead of the usual wrangler.json / wrangler.jsonc / wrangler.toml.

    Pass true to enable with defaults, or an object to customise behaviour. Currently the only sub-option is types.generate (defaults to true), which writes a worker-configuration.d.ts file next to the config. This enables typed env and exports for your Worker and currently assumes that you have @cloudflare/workers-types installed.

    // vite.config.ts
    import { defineConfig } from "vite";
    import { cloudflare } from "@cloudflare/vite-plugin";
    export default defineConfig({
    plugins: [
    cloudflare({
    experimental: {
    newConfig: true,
    },
    }),
    ],
    });

    // cloudflare.config.ts
    import {
    	defineWorker,
    	bindings,
    } from "@cloudflare/vite-plugin/experimental-config";
    import * as entrypoint from "./src/index.ts" with { type: "cf-worker" };
    export default defineWorker((ctx) => ({
    name: "my-worker",
    entrypoint,
    compatibilityDate: "2026-05-18",
    env: {
    MY_TEXT: bindings.text(The mode is ${ctx.mode}),
    MY_KV: bindings.kv(),
    },
    }));

    A few limitations apply while the feature is experimental:

    • configPath cannot be combined with experimental.newConfig. The entry Worker is always loaded from cloudflare.config.ts at the project root.
    • auxiliaryWorkers are not yet supported with experimental.newConfig.

    Because this is experimental, the option, the cloudflare.config.ts schema, and the @cloudflare/vite-plugin/experimental-config exports may change in any release.

... (truncated)

Changelog

Sourced from @​cloudflare/vite-plugin's changelog.

1.40.0

Minor Changes

  • #14013 3cf9d0e Thanks @​jamesopstad! - Add experimental experimental.newConfig option to load the entry Worker's configuration from cloudflare.config.ts

    This is an experimental, opt-in feature. When enabled, the plugin loads the entry Worker's configuration from a cloudflare.config.ts file instead of the usual wrangler.json / wrangler.jsonc / wrangler.toml.

    Pass true to enable with defaults, or an object to customise behaviour. Currently the only sub-option is types.generate (defaults to true), which writes a worker-configuration.d.ts file next to the config. This enables typed env and exports for your Worker and currently assumes that you have @cloudflare/workers-types installed.

    // vite.config.ts
    import { defineConfig } from "vite";
    import { cloudflare } from "@cloudflare/vite-plugin";
    export default defineConfig({
    plugins: [
    cloudflare({
    experimental: {
    newConfig: true,
    },
    }),
    ],
    });

    // cloudflare.config.ts
    import {
    	defineWorker,
    	bindings,
    } from "@cloudflare/vite-plugin/experimental-config";
    import * as entrypoint from "./src/index.ts" with { type: "cf-worker" };
    export default defineWorker((ctx) => ({
    name: "my-worker",
    entrypoint,
    compatibilityDate: "2026-05-18",
    env: {
    MY_TEXT: bindings.text(The mode is ${ctx.mode}),
    MY_KV: bindings.kv(),
    },
    }));

    A few limitations apply while the feature is experimental:

    • configPath cannot be combined with experimental.newConfig. The entry Worker is always loaded from cloudflare.config.ts at the project root.
    • auxiliaryWorkers are not yet supported with experimental.newConfig.

... (truncated)

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jun 15, 2026
Bumps [@cloudflare/vite-plugin](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/vite-plugin-cloudflare) from 1.39.2 to 1.40.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Changelog](https://github.com/cloudflare/workers-sdk/blob/main/packages/vite-plugin-cloudflare/CHANGELOG.md)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/@cloudflare/vite-plugin@1.40.0/packages/vite-plugin-cloudflare)

---
updated-dependencies:
- dependency-name: "@cloudflare/vite-plugin"
  dependency-version: 1.40.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/cloudflare/vite-plugin-1.40.0 branch from 55f2d7d to 6e19280 Compare June 15, 2026 19:11
@github-actions github-actions Bot enabled auto-merge June 15, 2026 19:12
@github-actions github-actions Bot merged commit dd4a4ee into main Jun 15, 2026
2 checks passed
@github-actions github-actions Bot deleted the dependabot/npm_and_yarn/cloudflare/vite-plugin-1.40.0 branch June 15, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants