@modern-js/core 1.20.1 → 1.21.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 +18 -0
- package/dist/config/types/index.d.ts +4 -2
- package/package.json +9 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @modern-js/core
|
|
2
2
|
|
|
3
|
+
## 1.21.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- dca34c4: fix(core): dev.https missing object type
|
|
8
|
+
|
|
9
|
+
fix(core): 修复 dev.https 配置项缺少对象类型的问题
|
|
10
|
+
|
|
11
|
+
- b0597e3: feat(webpack): expose HtmlWebpackPlugin instance in tools.webpack
|
|
12
|
+
|
|
13
|
+
feat(webpack): 支持在 tools.webpack 中获取到 HtmlWebpackPlugin 实例
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [7b3a482]
|
|
16
|
+
- Updated dependencies [28f0a4f]
|
|
17
|
+
- @modern-js/node-bundle-require@1.21.0
|
|
18
|
+
- @modern-js/plugin@1.21.0
|
|
19
|
+
- @modern-js/utils@1.21.0
|
|
20
|
+
|
|
3
21
|
## 1.20.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DevServerOptions } from '@modern-js/types';
|
|
1
|
+
import type { DevServerHttpsOptions, DevServerOptions } from '@modern-js/types';
|
|
2
2
|
import type { MetaOptions, ChainIdentifier, WatchOptions } from '@modern-js/utils';
|
|
3
3
|
import type { BabelConfig } from '@modern-js/babel-preset-app';
|
|
4
4
|
import type webpack from 'webpack';
|
|
@@ -123,7 +123,7 @@ export interface ServerConfig {
|
|
|
123
123
|
export declare type DevProxyOptions = string | Record<string, string>;
|
|
124
124
|
export interface DevConfig {
|
|
125
125
|
assetPrefix?: string | boolean;
|
|
126
|
-
https?:
|
|
126
|
+
https?: DevServerHttpsOptions;
|
|
127
127
|
/**
|
|
128
128
|
* The configuration of `dev.proxy` is provided by `proxy` plugin.
|
|
129
129
|
* Please use `yarn new` or `pnpm new` to enable the corresponding capability.
|
|
@@ -156,6 +156,7 @@ export declare type WebpackConfigUtils = {
|
|
|
156
156
|
env: string;
|
|
157
157
|
name: string;
|
|
158
158
|
webpack: typeof webpack;
|
|
159
|
+
HtmlWebpackPlugin: typeof import('html-webpack-plugin');
|
|
159
160
|
addRules: (rules: RuleSetRule | RuleSetRule[]) => void;
|
|
160
161
|
prependPlugins: (plugins: WebpackPluginInstance | WebpackPluginInstance[]) => void;
|
|
161
162
|
appendPlugins: (plugins: WebpackPluginInstance | WebpackPluginInstance[]) => void;
|
|
@@ -171,6 +172,7 @@ export declare type WebpackChainConfigUtils = {
|
|
|
171
172
|
name: string;
|
|
172
173
|
webpack: typeof webpack;
|
|
173
174
|
CHAIN_ID: ChainIdentifier;
|
|
175
|
+
HtmlWebpackPlugin: typeof import('html-webpack-plugin');
|
|
174
176
|
};
|
|
175
177
|
export declare type WebpackChainConfig = (chain: WebpackChain, utils: WebpackChainConfigUtils) => void;
|
|
176
178
|
export declare type TsLoaderConfigUtils = {
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"modern",
|
|
11
11
|
"modern.js"
|
|
12
12
|
],
|
|
13
|
-
"version": "1.
|
|
13
|
+
"version": "1.21.0",
|
|
14
14
|
"jsnext:source": "./src/index.ts",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"main": "./dist/index.js",
|
|
@@ -38,16 +38,16 @@
|
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@modern-js/node-bundle-require": "1.
|
|
42
|
-
"@modern-js/plugin": "1.
|
|
43
|
-
"@modern-js/utils": "1.
|
|
41
|
+
"@modern-js/node-bundle-require": "1.21.0",
|
|
42
|
+
"@modern-js/plugin": "1.21.0",
|
|
43
|
+
"@modern-js/utils": "1.21.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@jest/types": "^27.0.6",
|
|
47
|
-
"@modern-js/babel-preset-app": "1.
|
|
48
|
-
"@modern-js/types": "1.
|
|
49
|
-
"@scripts/build": "1.
|
|
50
|
-
"@scripts/jest-config": "1.
|
|
47
|
+
"@modern-js/babel-preset-app": "1.21.0",
|
|
48
|
+
"@modern-js/types": "1.21.0",
|
|
49
|
+
"@scripts/build": "1.21.0",
|
|
50
|
+
"@scripts/jest-config": "1.21.0",
|
|
51
51
|
"@types/babel__code-frame": "^7.0.3",
|
|
52
52
|
"@types/babel__core": "^7.1.16",
|
|
53
53
|
"@types/jest": "^27",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"autoprefixer": "^10.3.1",
|
|
57
57
|
"btsm": "2.2.2",
|
|
58
58
|
"electron-builder": "22.7.0",
|
|
59
|
+
"html-webpack-plugin": "5.5.0",
|
|
59
60
|
"jest": "^27",
|
|
60
61
|
"postcss": "^8.4.14",
|
|
61
62
|
"sass": "^1.45.0",
|