@modern-js/module-tools-docs 2.67.0 → 2.67.1
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/CHANGELOG.md
CHANGED
|
@@ -296,7 +296,7 @@ interface BannerAndFooter {
|
|
|
296
296
|
Let's say you want to add copyright information to JS and CSS files.
|
|
297
297
|
|
|
298
298
|
```ts
|
|
299
|
-
import { moduleTools, defineConfig } from '@
|
|
299
|
+
import { moduleTools, defineConfig } from '@modern-js/module-tools';
|
|
300
300
|
|
|
301
301
|
const copyRight = `/*
|
|
302
302
|
© Copyright 2020 example.com or one of its affiliates.
|
|
@@ -110,8 +110,6 @@ export const buildConfig = [
|
|
|
110
110
|
|
|
111
111
|
A generic pattern for components (libraries) used under the class [NPM](https://www.npmjs.com/) package manager. Contains both `esm` and `cjs` Bundleless artifacts (for easy _[Tree shaking](https://developer.mozilla.org/zh-CN/docs/Glossary/Tree_shaking)_ optimization), as well as including a copy of the type file.
|
|
112
112
|
|
|
113
|
-
For style files included in the source code, the artifacts provide the compiled files of the style and the source file of the style.
|
|
114
|
-
|
|
115
113
|
```json title="package.json"
|
|
116
114
|
{
|
|
117
115
|
"main": "./dist/lib/index.js", // bundleless type
|
|
@@ -290,7 +290,7 @@ interface BannerAndFooter {
|
|
|
290
290
|
例如你想为 JS 和 CSS 文件添加版权信息:
|
|
291
291
|
|
|
292
292
|
```ts
|
|
293
|
-
import { moduleTools, defineConfig } from '@
|
|
293
|
+
import { moduleTools, defineConfig } from '@modern-js/module-tools';
|
|
294
294
|
|
|
295
295
|
const copyRight = `/*
|
|
296
296
|
© Copyright 2020 example.com or one of its affiliates.
|
|
@@ -112,8 +112,6 @@ export const buildConfig = [
|
|
|
112
112
|
|
|
113
113
|
在类 [NPM](https://www.npmjs.com/) 包管理器下使用的 组件(库)通用模式。包含 `esm` 和 `cjs` 两种 Bundleless 产物(便于 _[Tree shaking](https://developer.mozilla.org/zh-CN/docs/Glossary/Tree_shaking)_ 优化),以及包含一份类型文件。
|
|
114
114
|
|
|
115
|
-
对于源码中包含的样式文件,产物中提供样式的编译产物和样式的源文件。
|
|
116
|
-
|
|
117
115
|
```json title="package.json"
|
|
118
116
|
{
|
|
119
117
|
"main": "./dist/lib/index.js", // bundleless type
|
package/package.json
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"directory": "packages/document/module-doc"
|
|
10
10
|
},
|
|
11
11
|
"license": "MIT",
|
|
12
|
-
"version": "2.67.
|
|
12
|
+
"version": "2.67.1",
|
|
13
13
|
"main": "index.js",
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@modern-js/doc-plugin-auto-sidebar": "2.58.1",
|
|
16
|
-
"@rspress/shared": "1.
|
|
16
|
+
"@rspress/shared": "1.43.10",
|
|
17
17
|
"react": "^18.3.1",
|
|
18
18
|
"react-dom": "^18.3.1",
|
|
19
|
-
"rspress": "1.
|
|
19
|
+
"rspress": "1.43.10"
|
|
20
20
|
},
|
|
21
21
|
"scripts": {
|
|
22
22
|
"dev": "rspress dev",
|