Skip to content

Vue Devtools included in production bundle #4943

Closed
@kendallroth

Description

@kendallroth

What happened?

When generating a production build, it appears that some Vue Devtools code is included in the build (due to VeeValidate). This is unexpected, as in production any devtools-related code should not be included (to decrease bundle size, etc). While the docs mention that the devtools are not installed in production builds, they still appear to be imported/included in bundle?

image

Reproduction steps

  1. Install and use vee-validate in a project
  2. Install rollup-plugin-visualizer (configure with sourcemaps: true)
  3. Build for production
  4. Verify that devtools-kit/dist/index.js is included in build

Version

Vue.js 3.x and vee-validate 4.x

What browsers are you seeing the problem on?

  • Firefox
  • Chrome
  • Safari
  • Microsoft Edge

Relevant log output

No response

Demo link

Not reproducible in CodeSandbox (requires build environment)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugUnintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions