@modern-js/module-tools-docs 2.49.2 → 2.49.4

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
@@ -1,5 +1,13 @@
1
1
  # @modern-js/module-tools-docs
2
2
 
3
+ ## 2.49.4
4
+
5
+ ## 2.49.3
6
+
7
+ ### Patch Changes
8
+
9
+ - b1db211: docs: update buildConfig in plugin-vue docs
10
+
3
11
  ## 2.49.2
4
12
 
5
13
  ## 2.49.1
@@ -100,7 +100,7 @@ In this case `babel-plugin-import` may also cause `Comps` to become `undefined`.
100
100
  ### Cannot find module http
101
101
 
102
102
  If the output reports an error like `Cannot find module 'http'` at browser runtime, it means that your output has bundled node modules.
103
- This may occur if some of your dependencies support both browser and node, such as `axios`, in which case you only need to set the [platform](/api/config/build-config.html/#platform) to `browser`.
103
+ This may occur if some of your dependencies support both browser and node, such as `axios`, in which case you only need to set the [platform](/api/config/build-config.html#platform) to `browser`.
104
104
  If some third-party packages don't support the browser, you may need to manually inject [node polyfill](/plugins/official-list/plugin-node-polyfill).
105
105
 
106
106
  ## Exceptions FAQ
@@ -29,10 +29,12 @@ import { modulePluginVue } from '@modern-js/plugin-module-vue';
29
29
 
30
30
  export default defineConfig({
31
31
  plugins: [moduleTools(), modulePluginVue()],
32
- buildType: 'bundle',
33
- format: 'esm',
34
- input: ['src/index.vue'],
35
- dts: false,
32
+ buildConfig: {
33
+ buildType: 'bundle',
34
+ format: 'esm',
35
+ input: ['src/index.vue'],
36
+ dts: false,
37
+ },
36
38
  });
37
39
  ```
38
40
 
@@ -100,7 +100,7 @@ export const libs = {
100
100
  ### Cannot find module http
101
101
 
102
102
  如果产物在浏览器运行时报了类似 `Cannot find module 'http'` 的错误,说明你的产物打包进了 node 模块。
103
- 这可能会发生于你的依赖里有一些同时支持 browser 和 node 的三方包,例如 `axios`,此时只需要将 [platform](/api/config/build-config.html/#platform) 设置为 `browser` 即可。
103
+ 这可能会发生于你的依赖里有一些同时支持 browser 和 node 的三方包,例如 `axios`,此时只需要将 [platform](/api/config/build-config.html#platform) 设置为 `browser` 即可。
104
104
  如果一些三方包不支持 browser, 你可能需要手动注入 [node polyfill](/plugins/official-list/plugin-node-polyfill)。
105
105
 
106
106
  ## 异常类问题
@@ -29,10 +29,12 @@ import { modulePluginVue } from '@modern-js/plugin-module-vue';
29
29
 
30
30
  export default defineConfig({
31
31
  plugins: [moduleTools(), modulePluginVue()],
32
- buildType: 'bundle',
33
- format: 'esm',
34
- input: ['src/index.vue'],
35
- dts: false,
32
+ buildConfig: {
33
+ buildType: 'bundle',
34
+ format: 'esm',
35
+ input: ['src/index.vue'],
36
+ dts: false,
37
+ },
36
38
  });
37
39
  ```
38
40
 
package/package.json CHANGED
@@ -9,14 +9,14 @@
9
9
  "directory": "packages/document/module-doc"
10
10
  },
11
11
  "license": "MIT",
12
- "version": "2.49.2",
12
+ "version": "2.49.4",
13
13
  "main": "index.js",
14
14
  "devDependencies": {
15
15
  "react": "^18.2.0",
16
16
  "react-dom": "^18.2.0",
17
17
  "rspress": "1.18.2",
18
18
  "@rspress/shared": "1.18.2",
19
- "@modern-js/doc-plugin-auto-sidebar": "2.49.2"
19
+ "@modern-js/doc-plugin-auto-sidebar": "2.49.4"
20
20
  },
21
21
  "scripts": {
22
22
  "dev": "rspress dev",