# vue
## Which dist file to use?
- **`vue.global(.prod).js`**:
- For direct use via `<script src="...">` in the browser. Exposes the `Vue` global.
- Note: global builds are not [UMD](https://github.com/umdjs/umd) builds. Instead they are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE).
- **`*vue(.runtime).esm-bundler.js`**:
- For use with bundlers like `webpack`, `rollup` and `parcel`.
- Leaves prod/dev branches with `process.env.NODE_ENV` guards (must be replaced by bundler)
- Does not ship minified builds (to be done together with the rest of the code after bundling)
- imports dependencies (e.g. `@vue/runtime-core`, `@vue/runtime-compiler`)
- imported depdencies are also `esm-bundler` builds and will in turn import their dependencies (e.g. `@vue/runtime-core` imports `@vue/reactivity`)
- this means you **can** install/import these deps individually without ending up with different instances of these dependencies.
- **`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`**:
- For usage via native ES modules imports (in browser via `<script type="module">`, or via Node.js native ES modules support in the future)
- Inlines all dependencies - i.e. it's a single ES module with no imports from other files
- this means you **must** import everything from this file nad this file only to ensure you are getting the same instance of code.
- Hard-coded prod/dev branches, and the prod build is pre-minified (you will need to use different files for dev/prod)
- **`vue.cjs(.prod).js`**:
- For use in Node.js server-side rendering via `require()`.
- The dev/prod files are pre-built, but are dynamically required based on `process.env.NODE_ENV` in `index.js`, which is the default entry when you do `require('vue')`.
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
vue-3.0.0-alpha.6.zip (373个子文件)
style.css 1KB
.gitignore 70B
todomvc.html 5KB
todomvc.html 5KB
grid.html 3KB
grid.html 3KB
svg.html 3KB
svg.html 3KB
modal.html 3KB
tree.html 2KB
tree.html 2KB
list.html 2KB
commits.html 2KB
commits.html 2KB
markdown.html 1KB
markdown.html 1KB
index.html 968B
local.html 942B
rollup.config.js 6KB
release.js 6KB
build.js 5KB
bootstrap.js 3KB
jest.config.js 1KB
dev.js 1KB
utils.js 933B
verifyCommit.js 892B
jest.js 236B
index.js 195B
index.js 191B
index.js 189B
index.js 189B
index.js 189B
index.js 187B
index.js 185B
index.js 171B
namedChars.json 44KB
package.json 2KB
package.json 1KB
package.json 991B
package.json 898B
package.json 844B
api-extractor.json 799B
tsconfig.json 795B
package.json 794B
package.json 770B
package.json 764B
package.json 749B
launch.json 740B
package.json 717B
package.json 668B
settings.json 475B
package.json 271B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 218B
api-extractor.json 210B
api-extractor.json 210B
api-extractor.json 210B
package.json 163B
package.json 77B
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
yarn.lock 267KB
CHANGELOG.md 22KB
contributing.md 14KB
commit-convention.md 3KB
README.md 2KB
README.md 1KB
README.md 1KB
README.md 790B
issue-template.md 514B
README.md 478B
README.md 393B
README.md 388B
README.md 317B
README.md 266B
README.md 198B
README.md 186B
README.md 21B
README.md 19B
README.md 19B
.prettierrc 45B
parse.spec.ts.snap 182KB
hoistStatic.spec.ts.snap 12KB
vModel.spec.ts.snap 7KB
vSlot.spec.ts.snap 6KB
vFor.spec.ts.snap 6KB
codegen.spec.ts.snap 4KB
vIf.spec.ts.snap 3KB
scopeId.spec.ts.snap 3KB
共 373 条
- 1
- 2
- 3
- 4
资源评论
a3737337
- 粉丝: 0
- 资源: 2869
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 2_1113重卡电动化创新聚焦日-录音转文字.docx
- “互联网+政务服务”整体建设方案 .docx
- 基于SSH的校园管理系统
- 精选微信小程序源码:面包旅行小程序(旅游类小清新版本)小程序(含源码+源码导入视频教程&文档教程,亲测可用)
- ArcGIS Pro SKD - ADGeoDatabase.daml
- C# winform自定义图片控件.zip,拖拽移动,滚轮缩放
- 基于python的dlib库的人脸识别实现
- ArcGIS Pro SDK - ADCore.daml
- rocketmq的客户端
- 精选微信小程序源码:户外旅游小程序(旅游类)小程序(含源码+源码导入视频教程&文档教程,亲测可用)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功