vue
Which dist file to use?
From CDN or without a Bundler
With a Bundler
Bundler Build Feature Flags
Detailed Reference on vuejs.org
esm-bundler
builds of Vue expose global feature flags that can be overwritten at compile time:
The build will work without configuring these flags, however it is strongly recommended to properly configure them in order to get proper tree-shaking in the final bundle.
For Server-Side Rendering
vue.cjs(.prod).js
:
- For use in Node.js server-side rendering via
require()
. - If you bundle your app with webpack with
target: 'node'
and properly externalize vue
, this is the build that will be loaded. - The dev/prod files are pre-built, but the appropriate file is automatically required based on
process.env.NODE_ENV
.