$ cnpm install @intlify/core
The intlify core module for i18n
core(.runtime).global(.prod).js:
<script src="..."> in the browser. Exposes the IntlifyCore global<script src="...">core.global.js is the "full" build that includes both the compiler and the runtime so it supports compiling locale messages on the flycore.runtime.global.js contains only the runtime and requires locale messages to be pre-compiled during a build step@intlify/shared@intlify/message-compiler*.prod.js files for productioncore(.runtime).esm-browser(.prod).js:
<script type="module">)core(.runtime).esm-bundler.js:
webpack, rollup and parcelprocess.env.NODE_ENV guards (must be replaced by bundler)@intlify/message-compiler)
esm-bundler builds and will in turn import their dependencies (e.g. @intlify/message-compiler imports @intlify/shared)core.runtime.esm-bundler.js (default) is runtime only, and requires all locale messages to be pre-compiled. 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 *.json files)core.esm-bundler.js: includes the runtime compiler. Use this if you are using a bundler but still want locale messages compilation (e.g. templates via inline JavaScript strings)core.cjs(.prod).js:
require()target: 'node' and properly externalize @intlify/core, this is the build that will be loadedprocess.env.NODE_ENVCopyright 2013 - present © cnpmjs.org | Home |