$ npm install vue
vue(.runtime).global(.prod).js
:
<script src="...">
in the browser. Exposes the Vue
global.<script src>
.vue.global.js
: the "full" build that supports compiling templates on the fly.vue.runtime.global.js
: runtime only, does not include runtime template compilation support. Use this if you are not using a bundler, but somehow pre-compiling your template.vue.esm(.prod).js
:
<script type="module">
, or via Node.js native ES modules support in the future)vue(.runtime).esm-bundler.js
:
webpack
, rollup
and parcel
.process.env.NODE_ENV
guards (must be replaced by bundler)@vue/runtime-core
, @vue/runtime-compiler
)
esm-bundler
builds and will in turn import their dependencies (e.g. @vue/runtime-core
imports @vue/reactivity
)vue.runtime.esm-bundler.js
: runtime only, does not include runtime template compilation support. This is the default entry for bundlers (via module
field in package.json
) because when using a bundler templates are typically pre-compiled (e.g. in *.vue
files).vue.esm-bundler.js
: includes the runtime compiler. Use this if you are using a bundler but still want runtime template compilation (e.g. in-DOM templates or templates via inline JavaScript strings).vue.cjs(.prod).js
:
require()
.target: 'node'
and properly externalize vue
, this is the build that will be loaded.process.env.NODE_ENV
.© 2010 - cnpmjs.org x YWFE | Home | YWFE