Skip to content

Commit 6589929

Browse files
committed
drop cjs: docs
1 parent 16c80c8 commit 6589929

File tree

4 files changed

+1
-37
lines changed

4 files changed

+1
-37
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,6 @@ By default, each package will be built in multiple distribution formats as speci
103103
- This means you **must** import everything from this file and this file only to ensure you are getting the same instance of code.
104104
- Hard-coded prod/dev branches, and the prod build is pre-minified (you will have to use different paths/aliases for dev/prod)
105105

106-
- **`cjs`**
107-
108-
- For use in Node.js server-side rendering via `require()`.
109-
- 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-i18n')`.
110-
111106
For example, to build `compiler` with the global build only:
112107

113108
```bash
@@ -117,7 +112,7 @@ pnpm build -- message-compiler -f global
117112
Multiple formats can be specified as a comma-separated list:
118113

119114
```bash
120-
pnpm build -- message-compiler -f esm-browser,cjs
115+
pnpm build -- message-compiler -f esm-browser,global
121116
```
122117

123118
#### Build with Source Maps

docs/guide/extra/dist.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,24 +40,10 @@ If you use `vue-i18n.runtime.esm-bundler.js`, you will need to precompile all lo
4040

4141
## For Node.js (Server-Side)
4242

43-
- **`vue-i18n.cjs(.prod).js`**:
44-
- For CommonJS usage in Node.js
45-
- For use in Node.js via `require()`
46-
- If you bundle your app with webpack with `target: 'node'` and properly externalize `vue-i18n`, this is the build that will be loaded
47-
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env`<wbr/>`.NODE_ENV`
48-
49-
:::tip Support Version
50-
:new: 9.3+
51-
:::
52-
5343
- **`vue-i18n(.runtime).node.mjs`**:
5444
- For ES Modules usage in Node.js
5545
- For use in Node.js via `import`
5646
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env`<wbr/>`.NODE_ENV`
5747
- This module is proxy module of `vue-i18n(.runtime).mjs`
5848
- **`vue-i18n.runtime.node.mjs`**: is runtime only.
5949
- **`vue-i18n.node.mjs`**: includes the runtime compiler.
60-
61-
:::tip NOTE
62-
ES Modules will be the future of the Node.js module system. The `vue-i18n.cjs(.prod).js` will be deprecated in the future. We recommend you would use `vue-i18n(.runtime).node.mjs`.
63-
:::

packages/core/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ The intlify core module for i18n
3636

3737
### For Node.js (Server-Side)
3838

39-
- **`core.cjs(.prod).js`**:
40-
- For CommonJS usage in Node.js
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-
4539
- **`core(.runtime).node.mjs`**:
4640
- For ES Moudles usage in Node.js
4741
- For use in Node.js via `import`
@@ -50,9 +44,6 @@ The intlify core module for i18n
5044
- **`core.runtime.node.mjs`**: is runtime only. proxy `core.runtime.mjs`
5145
- **`core.node.mjs`**: includes the runtime compiler. proxy `core.mjs`
5246

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-
55-
5647
## :copyright: License
5748

5849
[MIT](http://opensource.org/licenses/MIT)

packages/vue-i18n/README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ Internationalization plugin for Vue.js
3838

3939
### For Node.js (Server-Side)
4040

41-
- **`vue-i18n.cjs(.prod).js`**:
42-
- For CommonJS usage in Node.js
43-
- For use in Node.js via `require()`
44-
- If you bundle your app with webpack with `target: 'node'` and properly externalize `vue-i18n`, this is the build that will be loaded
45-
- The dev/prod files are pre-built, but the appropriate file is automatically required based on `process.env.NODE_ENV`
46-
4741
- **`vue-i18n(.runtime).node.mjs`**:
4842
- For ES Moudles usage in Node.js
4943
- For use in Node.js via `import`
@@ -52,8 +46,6 @@ Internationalization plugin for Vue.js
5246
- **`vue-i18n.runtime.node.mjs`**: is runtime only
5347
- **`vue-i18n.node.mjs`**: includes the runtime compiler
5448

55-
> NOTE: ES Modules will be the future of the Node.js module system. The `vue-i18n.cjs(.prod).js` will be deprecated in the future. We recommend you would use `vue-i18n(.runtime).node.mjs`. 9.3+
56-
5749

5850
## For Bundler feature flags
5951

0 commit comments

Comments
 (0)