$ npm install vue
vue.global(.prod).js
:
*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.esm(.prod).js
:
<script type="module">
, or via Node.js native ES modules support in the future)vue.cjs(.prod).js
:
require()
.process.env.NODE_ENV
in index.js
, which is the default entry when you do require('vue')
.© 2010 - cnpmjs.org x YWFE | Home | YWFE