@intlify/core 11.4.18 → 12.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +6 -15
- package/dist/core.d.ts +1 -4
- package/dist/core.esm-browser.js +2420 -3465
- package/dist/core.esm-browser.prod.js +1495 -6
- package/dist/core.esm-bundler.js +1 -1
- package/dist/core.global.js +2745 -3796
- package/dist/core.global.prod.js +1517 -6
- package/dist/core.js +6 -0
- package/dist/core.node.js +6 -0
- package/dist/core.runtime.esm-browser.js +1484 -1976
- package/dist/core.runtime.esm-browser.prod.js +914 -6
- package/dist/core.runtime.esm-bundler.js +1 -1
- package/dist/core.runtime.global.js +1784 -2282
- package/dist/core.runtime.global.prod.js +917 -6
- package/dist/core.runtime.js +17 -0
- package/dist/core.runtime.node.js +17 -0
- package/package.json +41 -48
- package/dist/core.cjs +0 -26
- package/dist/core.cjs.js +0 -1
- package/dist/core.cjs.prod.js +0 -1
- package/dist/core.mjs +0 -31
- package/dist/core.node.mjs +0 -31
- package/dist/core.prod.cjs +0 -26
- package/dist/core.runtime.mjs +0 -31
- package/dist/core.runtime.node.mjs +0 -31
- package/index.js +0 -7
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2016-present kazuya kawaguchi and contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
6
|
this software and associated documentation files (the "Software"), to deal in
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The intlify core module for i18n
|
|
|
8
8
|
|
|
9
9
|
- **`core(.runtime).global(.prod).js`**:
|
|
10
10
|
- For direct use via `<script src="...">` in the browser. Exposes the `IntlifyCore` global
|
|
11
|
-
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds.
|
|
11
|
+
- Note that global builds are not [UMD](https://github.com/umdjs/umd) builds. They are built as [IIFEs](https://developer.mozilla.org/en-US/docs/Glossary/IIFE) and is only meant for direct use via `<script src="...">`
|
|
12
12
|
- In-browser locale messages compilation:
|
|
13
13
|
- **`core.global.js`** is the "full" build that includes both the compiler and the runtime so it supports compiling locale messages on the fly
|
|
14
14
|
- **`core.runtime.global.js`** contains only the runtime and requires locale messages to be pre-compiled during a build step
|
|
@@ -36,22 +36,13 @@ The intlify core module for i18n
|
|
|
36
36
|
|
|
37
37
|
### For Node.js (Server-Side)
|
|
38
38
|
|
|
39
|
-
- **`core
|
|
40
|
-
- For
|
|
41
|
-
- For use in Node.js via `require()`
|
|
42
|
-
- If you bundle your app with webpack with `target: 'node'` and properly externalize `@intlify/core`, this is the build that will be loaded
|
|
43
|
-
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`
|
|
44
|
-
|
|
45
|
-
- **`core(.runtime).node.mjs`**:
|
|
46
|
-
- For ES Moudles usage in Node.js
|
|
39
|
+
- **`core(.runtime).node.js`**:
|
|
40
|
+
- For ES Modules usage in Node.js
|
|
47
41
|
- For use in Node.js via `import`
|
|
48
42
|
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`
|
|
49
|
-
- This module is proxy module of `core(.runtime).
|
|
50
|
-
- **`core.runtime.node.
|
|
51
|
-
- **`core.node.
|
|
52
|
-
|
|
53
|
-
> NOTE: ES Modules will be the future of the Node.js module system. The `core.cjs(.prod).js` will be deprecated in the future. We recommend you would use `core(.runtime).node.mjs`. 9.3+
|
|
54
|
-
|
|
43
|
+
- This module is proxy module of `core(.runtime).js`
|
|
44
|
+
- **`core.runtime.node.js`**: is runtime only. proxy `core.runtime.js`
|
|
45
|
+
- **`core.node.js`**: includes the runtime compiler. proxy `core.js`
|
|
55
46
|
|
|
56
47
|
## :copyright: License
|
|
57
48
|
|
package/dist/core.d.ts
CHANGED