You are running the esm-bundler build of Vue. It is recommended to configure your bundler You are running the esm-bundler build of Vue. It is recommended to configure your bundler vue.js vue.js

You are running the esm-bundler build of Vue. It is recommended to configure your bundler


The linked docs specify two configurable flags:

  • __VUE_OPTIONS_API__ (enable/disable Options API support, default: true)
  • __VUE_PROD_DEVTOOLS__ (enable/disable devtools support in production, default: false)

For Webpack, use the DefinePlugin to set these flags:

const webpack = require('webpack')mix.webpackConfig ({  plugins: [    new webpack.DefinePlugin({      __VUE_OPTIONS_API__: false,      __VUE_PROD_DEVTOOLS__: false,    }),  ],})


For laravel-mix use

mix.webpackConfig(webpack => {    return {        plugins: [            new webpack.DefinePlugin({                __VUE_OPTIONS_API__: false,                __VUE_PROD_DEVTOOLS__: false,            }),        ],    }})