@modern-js/module-tools 1.18.1 → 1.19.0

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,27 @@
1
1
  # @modern-js/module-tools
2
2
 
3
+ ## 1.19.0
4
+
5
+ ### Patch Changes
6
+
7
+ - bce327b: 支持自定义 umd 模块名通过设置'getModuleId'
8
+ support custom umd module name by 'getModuleId'
9
+ - Updated dependencies [d2cfa69]
10
+ - Updated dependencies [d2fbefc]
11
+ - Updated dependencies [d2fbefc]
12
+ - @modern-js/core@1.19.0
13
+ - @modern-js/plugin-jarvis@1.19.0
14
+ - @modern-js/plugin-changeset@1.19.0
15
+ - @modern-js/css-config@1.19.0
16
+ - @modern-js/new-action@1.19.0
17
+ - @modern-js/upgrade@1.19.0
18
+ - @modern-js/babel-preset-module@1.19.0
19
+ - @modern-js/plugin-i18n@1.19.0
20
+ - @modern-js/babel-compiler@1.19.0
21
+ - @modern-js/style-compiler@1.19.0
22
+ - @modern-js/plugin@1.19.0
23
+ - @modern-js/utils@1.19.0
24
+
3
25
  ## 1.18.1
4
26
 
5
27
  ### Patch Changes
@@ -110,7 +110,8 @@ export const runSpeedy = async (api, config) => {
110
110
  platform,
111
111
  splitting,
112
112
  minify,
113
- externals
113
+ externals,
114
+ getModuleId
114
115
  } = bundleOptions;
115
116
  const distDir = path.join(appDirectory, distPath, outputPath);
116
117
  const titleText = `[Bundle:Speedy:${format}_${target}]`;
@@ -159,7 +160,8 @@ export const runSpeedy = async (api, config) => {
159
160
  sourceMap,
160
161
  minify,
161
162
  external: externals,
162
- plugins
163
+ plugins,
164
+ getModuleId
163
165
  };
164
166
  const speedyConfig = applyOptionsChain(internalSpeedyConfig, userSpeedyConfig);
165
167
  const compiler = await SpeedyBundler.create(speedyConfig);
@@ -19,6 +19,9 @@ const properties = {
19
19
  bundleOptions: {
20
20
  type: 'object',
21
21
  properties: {
22
+ getModuleId: {
23
+ instanceof: 'Function'
24
+ },
22
25
  entry: {
23
26
  type: 'object'
24
27
  },
@@ -130,7 +130,8 @@ const runSpeedy = async (api, config) => {
130
130
  platform,
131
131
  splitting,
132
132
  minify,
133
- externals
133
+ externals,
134
+ getModuleId
134
135
  } = bundleOptions;
135
136
 
136
137
  const distDir = _path.default.join(appDirectory, distPath, outputPath);
@@ -181,7 +182,8 @@ const runSpeedy = async (api, config) => {
181
182
  sourceMap,
182
183
  minify,
183
184
  external: externals,
184
- plugins
185
+ plugins,
186
+ getModuleId
185
187
  };
186
188
  const speedyConfig = (0, _utils.applyOptionsChain)(internalSpeedyConfig, userSpeedyConfig);
187
189
  const compiler = await _speedyCore.SpeedyBundler.create(speedyConfig);
@@ -27,6 +27,9 @@ const properties = {
27
27
  bundleOptions: {
28
28
  type: 'object',
29
29
  properties: {
30
+ getModuleId: {
31
+ instanceof: 'Function'
32
+ },
30
33
  entry: {
31
34
  type: 'object'
32
35
  },
@@ -25,6 +25,9 @@ export declare const buildSchema: ({
25
25
  bundleOptions: {
26
26
  type: string;
27
27
  properties: {
28
+ getModuleId: {
29
+ instanceof: string;
30
+ };
28
31
  entry: {
29
32
  type: string;
30
33
  };
@@ -115,6 +118,9 @@ export declare const buildSchema: ({
115
118
  bundleOptions: {
116
119
  type: string;
117
120
  properties: {
121
+ getModuleId: {
122
+ instanceof: string;
123
+ };
118
124
  entry: {
119
125
  type: string;
120
126
  };
@@ -28,6 +28,9 @@ export declare const addSchema: () => ({
28
28
  bundleOptions: {
29
29
  type: string;
30
30
  properties: {
31
+ getModuleId: {
32
+ instanceof: string;
33
+ };
31
34
  entry: {
32
35
  type: string;
33
36
  };
@@ -118,6 +121,9 @@ export declare const addSchema: () => ({
118
121
  bundleOptions: {
119
122
  type: string;
120
123
  properties: {
124
+ getModuleId: {
125
+ instanceof: string;
126
+ };
121
127
  entry: {
122
128
  type: string;
123
129
  };
@@ -23,6 +23,9 @@ export declare const outputSchema: ({
23
23
  bundleOptions: {
24
24
  type: string;
25
25
  properties: {
26
+ getModuleId: {
27
+ instanceof: string;
28
+ };
26
29
  entry: {
27
30
  type: string;
28
31
  };
@@ -113,6 +116,9 @@ export declare const outputSchema: ({
113
116
  bundleOptions: {
114
117
  type: string;
115
118
  properties: {
119
+ getModuleId: {
120
+ instanceof: string;
121
+ };
116
122
  entry: {
117
123
  type: string;
118
124
  };
@@ -10,6 +10,7 @@ export declare type BundleOptions = {
10
10
  minify?: SpeedyConfig['minify'];
11
11
  externals?: SpeedyConfig['external'];
12
12
  skipDeps?: boolean;
13
+ getModuleId?: SpeedyConfig['getModuleId'];
13
14
  };
14
15
  export declare type BundlelessOptions = {
15
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",
14
+ "version": "1.19.0",
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",
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.18.1",
65
- "@modern-js/plugin-i18n": "1.18.1",
66
- "@modern-js/plugin-jarvis": "1.18.1",
67
- "@modern-js/style-compiler": "1.18.1",
68
- "@modern-js/utils": "1.18.1",
57
+ "@modern-js/babel-compiler": "1.19.0",
58
+ "@modern-js/babel-preset-module": "1.19.0",
59
+ "@modern-js/core": "1.19.0",
60
+ "@modern-js/css-config": "1.19.0",
61
+ "@modern-js/new-action": "1.19.0",
62
+ "@modern-js/upgrade": "1.19.0",
63
+ "@modern-js/plugin": "1.19.0",
64
+ "@modern-js/plugin-changeset": "1.19.0",
65
+ "@modern-js/plugin-i18n": "1.19.0",
66
+ "@modern-js/plugin-jarvis": "1.19.0",
67
+ "@modern-js/style-compiler": "1.19.0",
68
+ "@modern-js/utils": "1.19.0",
69
69
  "@rollup/plugin-json": "~4.1.0",
70
- "@speedy-js/speedy-types": "0.13.2-alpha.3",
71
- "@speedy-js/speedy-core": "0.13.2-alpha.3",
72
- "@speedy-js/speedy-plugin-es5": "0.13.2-alpha.3",
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,9 +79,8 @@
79
79
  "signal-exit": "^3.0.7"
80
80
  },
81
81
  "devDependencies": {
82
- "@scripts/build": "1.18.1",
83
- "@scripts/jest-config": "1.18.1",
84
- "@speedy-js/speedy-types": "0.13.2-alpha.3",
82
+ "@scripts/build": "1.19.0",
83
+ "@scripts/jest-config": "1.19.0",
85
84
  "@types/babel__core": "^7.1.15",
86
85
  "@types/babel__generator": "^7.6.3",
87
86
  "@types/babel__traverse": "^7.14.2",
@@ -134,6 +133,5 @@
134
133
  "build": "wireit",
135
134
  "test": "wireit",
136
135
  "dev": "modern build --watch"
137
- },
138
- "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
+ }
139
137
  }