@modern-js/module-tools 1.18.1-alpha.0 → 1.18.2

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,25 +1,37 @@
1
1
  # @modern-js/module-tools
2
2
 
3
- ## 1.18.1-alpha.0
3
+ ## 1.18.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - b2fd4a1: bundleOptions add moduleId
7
+ - bce327bd: 支持自定义 umd 模块名通过设置'getModuleId'
8
+ support custom umd module name by 'getModuleId'
9
+ - Updated dependencies [d2fbefc5]
10
+ - Updated dependencies [d2fbefc5]
11
+ - @modern-js/plugin-jarvis@1.19.0
12
+ - @modern-js/plugin-changeset@1.19.0
13
+ - @modern-js/upgrade@1.18.1
14
+
15
+ ## 1.18.1
16
+
17
+ ### Patch Changes
18
+
19
+ - Updated dependencies [318e149]
8
20
  - Updated dependencies [c1a4d9b]
9
21
  - Updated dependencies [9fcfbd4]
10
22
  - Updated dependencies [6c2c745]
11
- - @modern-js/plugin@1.18.1-alpha.0
12
- - @modern-js/utils@1.18.1-alpha.0
13
- - @modern-js/core@1.18.1-alpha.0
14
- - @modern-js/babel-preset-module@1.18.1-alpha.0
15
- - @modern-js/css-config@1.18.1-alpha.0
16
- - @modern-js/plugin-changeset@1.18.1-alpha.0
17
- - @modern-js/plugin-i18n@1.18.1-alpha.0
18
- - @modern-js/plugin-jarvis@1.18.1-alpha.0
19
- - @modern-js/new-action@1.18.1-alpha.0
20
- - @modern-js/babel-compiler@1.18.1-alpha.0
21
- - @modern-js/style-compiler@1.18.1-alpha.0
22
- - @modern-js/upgrade@1.18.1-alpha.0
23
+ - @modern-js/core@1.18.1
24
+ - @modern-js/plugin@1.18.1
25
+ - @modern-js/utils@1.18.1
26
+ - @modern-js/css-config@1.18.1
27
+ - @modern-js/plugin-changeset@1.18.1
28
+ - @modern-js/plugin-jarvis@1.18.1
29
+ - @modern-js/babel-preset-module@1.18.1
30
+ - @modern-js/plugin-i18n@1.18.1
31
+ - @modern-js/new-action@1.18.1
32
+ - @modern-js/babel-compiler@1.18.1
33
+ - @modern-js/style-compiler@1.18.1
34
+ - @modern-js/upgrade@1.18.1
23
35
 
24
36
  ## 1.18.0
25
37
 
@@ -111,7 +111,7 @@ export const runSpeedy = async (api, config) => {
111
111
  splitting,
112
112
  minify,
113
113
  externals,
114
- moduleId
114
+ getModuleId
115
115
  } = bundleOptions;
116
116
  const distDir = path.join(appDirectory, distPath, outputPath);
117
117
  const titleText = `[Bundle:Speedy:${format}_${target}]`;
@@ -161,7 +161,7 @@ export const runSpeedy = async (api, config) => {
161
161
  minify,
162
162
  external: externals,
163
163
  plugins,
164
- moduleId
164
+ getModuleId
165
165
  };
166
166
  const speedyConfig = applyOptionsChain(internalSpeedyConfig, userSpeedyConfig);
167
167
  const compiler = await SpeedyBundler.create(speedyConfig);
@@ -19,8 +19,8 @@ const properties = {
19
19
  bundleOptions: {
20
20
  type: 'object',
21
21
  properties: {
22
- moduleId: {
23
- type: 'string'
22
+ getModuleId: {
23
+ instanceof: 'Function'
24
24
  },
25
25
  entry: {
26
26
  type: 'object'
@@ -131,7 +131,7 @@ const runSpeedy = async (api, config) => {
131
131
  splitting,
132
132
  minify,
133
133
  externals,
134
- moduleId
134
+ getModuleId
135
135
  } = bundleOptions;
136
136
 
137
137
  const distDir = _path.default.join(appDirectory, distPath, outputPath);
@@ -183,7 +183,7 @@ const runSpeedy = async (api, config) => {
183
183
  minify,
184
184
  external: externals,
185
185
  plugins,
186
- moduleId
186
+ getModuleId
187
187
  };
188
188
  const speedyConfig = (0, _utils.applyOptionsChain)(internalSpeedyConfig, userSpeedyConfig);
189
189
  const compiler = await _speedyCore.SpeedyBundler.create(speedyConfig);
@@ -27,8 +27,8 @@ const properties = {
27
27
  bundleOptions: {
28
28
  type: 'object',
29
29
  properties: {
30
- moduleId: {
31
- type: 'string'
30
+ getModuleId: {
31
+ instanceof: 'Function'
32
32
  },
33
33
  entry: {
34
34
  type: 'object'
@@ -25,8 +25,8 @@ export declare const buildSchema: ({
25
25
  bundleOptions: {
26
26
  type: string;
27
27
  properties: {
28
- moduleId: {
29
- type: string;
28
+ getModuleId: {
29
+ instanceof: string;
30
30
  };
31
31
  entry: {
32
32
  type: string;
@@ -118,8 +118,8 @@ export declare const buildSchema: ({
118
118
  bundleOptions: {
119
119
  type: string;
120
120
  properties: {
121
- moduleId: {
122
- type: string;
121
+ getModuleId: {
122
+ instanceof: string;
123
123
  };
124
124
  entry: {
125
125
  type: string;
@@ -28,8 +28,8 @@ export declare const addSchema: () => ({
28
28
  bundleOptions: {
29
29
  type: string;
30
30
  properties: {
31
- moduleId: {
32
- type: string;
31
+ getModuleId: {
32
+ instanceof: string;
33
33
  };
34
34
  entry: {
35
35
  type: string;
@@ -121,8 +121,8 @@ export declare const addSchema: () => ({
121
121
  bundleOptions: {
122
122
  type: string;
123
123
  properties: {
124
- moduleId: {
125
- type: string;
124
+ getModuleId: {
125
+ instanceof: string;
126
126
  };
127
127
  entry: {
128
128
  type: string;
@@ -23,8 +23,8 @@ export declare const outputSchema: ({
23
23
  bundleOptions: {
24
24
  type: string;
25
25
  properties: {
26
- moduleId: {
27
- type: string;
26
+ getModuleId: {
27
+ instanceof: string;
28
28
  };
29
29
  entry: {
30
30
  type: string;
@@ -116,8 +116,8 @@ export declare const outputSchema: ({
116
116
  bundleOptions: {
117
117
  type: string;
118
118
  properties: {
119
- moduleId: {
120
- type: string;
119
+ getModuleId: {
120
+ instanceof: string;
121
121
  };
122
122
  entry: {
123
123
  type: string;
@@ -10,7 +10,7 @@ export declare type BundleOptions = {
10
10
  minify?: SpeedyConfig['minify'];
11
11
  externals?: SpeedyConfig['external'];
12
12
  skipDeps?: boolean;
13
- moduleId?: string;
13
+ getModuleId?: SpeedyConfig['getModuleId'];
14
14
  };
15
15
  export declare type BundlelessOptions = {
16
16
  sourceDir?: string;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.18.1-alpha.0",
14
+ "version": "1.18.2",
15
15
  "bin": {
16
16
  "modern": "./bin/modern.js"
17
17
  },
@@ -54,22 +54,22 @@
54
54
  "@babel/runtime": "^7.18.0",
55
55
  "@babel/traverse": "^7.18.0",
56
56
  "@babel/types": "^7.18.0",
57
- "@modern-js/babel-compiler": "1.18.1-alpha.0",
58
- "@modern-js/babel-preset-module": "1.18.1-alpha.0",
59
- "@modern-js/core": "1.18.1-alpha.0",
60
- "@modern-js/css-config": "1.18.1-alpha.0",
61
- "@modern-js/new-action": "1.18.1-alpha.0",
62
- "@modern-js/upgrade": "1.18.1-alpha.0",
63
- "@modern-js/plugin": "1.18.1-alpha.0",
64
- "@modern-js/plugin-changeset": "1.18.1-alpha.0",
65
- "@modern-js/plugin-i18n": "1.18.1-alpha.0",
66
- "@modern-js/plugin-jarvis": "1.18.1-alpha.0",
67
- "@modern-js/style-compiler": "1.18.1-alpha.0",
68
- "@modern-js/utils": "1.18.1-alpha.0",
57
+ "@modern-js/babel-compiler": "1.18.1",
58
+ "@modern-js/babel-preset-module": "1.18.1",
59
+ "@modern-js/core": "1.18.1",
60
+ "@modern-js/css-config": "1.18.1",
61
+ "@modern-js/new-action": "1.18.1",
62
+ "@modern-js/upgrade": "1.18.1",
63
+ "@modern-js/plugin": "1.18.1",
64
+ "@modern-js/plugin-changeset": "1.19.0",
65
+ "@modern-js/plugin-i18n": "1.18.1",
66
+ "@modern-js/plugin-jarvis": "1.19.0",
67
+ "@modern-js/style-compiler": "1.18.1",
68
+ "@modern-js/utils": "1.18.1",
69
69
  "@rollup/plugin-json": "~4.1.0",
70
- "@speedy-js/speedy-types": "0.13.2-modern.0",
71
- "@speedy-js/speedy-core": "0.13.2-modern.0",
72
- "@speedy-js/speedy-plugin-es5": "0.13.2-modern.0",
70
+ "@speedy-js/speedy-types": "0.13.2-modern.1",
71
+ "@speedy-js/speedy-core": "0.13.2-modern.1",
72
+ "@speedy-js/speedy-plugin-es5": "0.13.2-modern.1",
73
73
  "normalize-path": "^3.0.0",
74
74
  "p-map": "^4",
75
75
  "process.argv": "^0.6.0",
@@ -79,8 +79,8 @@
79
79
  "signal-exit": "^3.0.7"
80
80
  },
81
81
  "devDependencies": {
82
- "@scripts/build": "1.18.1-alpha.0",
83
- "@scripts/jest-config": "1.18.1-alpha.0",
82
+ "@scripts/build": "1.18.1",
83
+ "@scripts/jest-config": "1.18.1",
84
84
  "@types/babel__core": "^7.1.15",
85
85
  "@types/babel__generator": "^7.6.3",
86
86
  "@types/babel__traverse": "^7.14.2",
@@ -133,6 +133,5 @@
133
133
  "build": "wireit",
134
134
  "test": "wireit",
135
135
  "dev": "modern build --watch"
136
- },
137
- "readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
136
+ }
138
137
  }