1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/vue-i18n/dist
詹力 1a19ec897f 删除无关模块 2024-01-16 21:26:16 +08:00
..
README.md i4 2023-12-18 13:12:25 +08:00
vue-i18n.common.js 删除无关模块 2024-01-16 21:26:16 +08:00
vue-i18n.esm.browser.js 删除无关模块 2024-01-16 21:26:16 +08:00
vue-i18n.esm.browser.min.js 删除无关模块 2024-01-16 21:26:16 +08:00
vue-i18n.esm.js 删除无关模块 2024-01-16 21:26:16 +08:00
vue-i18n.js 删除无关模块 2024-01-16 21:26:16 +08:00
vue-i18n.min.js 删除无关模块 2024-01-16 21:26:16 +08:00

README.md

Explanation of Different Builds

  • UMD: vue-i18n.js
  • CommonJS: vue-i18n.common.js
  • ES Module for bundlers: vue-i18n.esm.js
  • ES Module for browsers: vue-i18n.esm.browser.js

Terms

  • UMD: UMD builds can be used directly in the browser via a <script> tag. The default file from Unpkg CDN at https://unpkg.com/vue-i18n is the UMD build (vue-i18n.js).

  • CommonJS: CommonJS builds are intended for use with older bundlers like browserify or webpack 1. The default file for these bundlers (pkg.main) is the Runtime only CommonJS build (vue-i18n.common.js).

  • ES Module: starting in 8.11 VueI18n provides two ES Modules (ESM) builds:

    • ESM for bundlers: intended for use with modern bundlers like webpack 2 or Rollup. ESM format is designed to be statically analyzable so the bundlers can take advantage of that to perform "tree-shaking" and eliminate unused code from your final bundle. The default file for these bundlers (pkg.module) is the Runtime only ES Module build (vue-i18n.esm.js).
    • ESM for browsers (8.11+ only, vue-i18n.esm.browser.js): intended for direct imports in modern browsers via <script type="module">.