@modern-js/app-tools 2.64.3-alpha.0 → 2.65.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/dist/cjs/builder/generator/index.js +2 -2
- package/dist/cjs/builder/shared/builderPlugins/builderHooks.js +3 -3
- package/dist/esm/builder/generator/index.js +3 -3
- package/dist/esm/builder/shared/builderPlugins/builderHooks.js +2 -2
- package/dist/esm-node/builder/generator/index.js +2 -2
- package/dist/esm-node/builder/shared/builderPlugins/builderHooks.js +2 -2
- package/dist/types/builder/shared/builderPlugins/builderHooks.d.ts +1 -1
- package/package.json +19 -18
@@ -53,12 +53,12 @@ async function generateBuilder(options, bundlerType) {
|
|
53
53
|
return builder;
|
54
54
|
}
|
55
55
|
async function applyBuilderPlugins(builder, options) {
|
56
|
-
const { builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR,
|
56
|
+
const { builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR, builderPluginAdapterHooks } = await import("../shared/builderPlugins/index.js");
|
57
57
|
builder.addPlugins([
|
58
58
|
builderPluginAdapterBasic(),
|
59
59
|
builderPluginAdapterSSR(options),
|
60
60
|
builderPluginAdapterHtml(options),
|
61
|
-
|
61
|
+
builderPluginAdapterHooks(options)
|
62
62
|
]);
|
63
63
|
builder.addPlugins([
|
64
64
|
(0, import_adapterCopy.builderPluginAdapterCopy)(options)
|
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
19
|
var builderHooks_exports = {};
|
20
20
|
__export(builderHooks_exports, {
|
21
|
-
|
21
|
+
builderPluginAdapterHooks: () => builderPluginAdapterHooks
|
22
22
|
});
|
23
23
|
module.exports = __toCommonJS(builderHooks_exports);
|
24
|
-
const
|
24
|
+
const builderPluginAdapterHooks = (options) => ({
|
25
25
|
name: "builder-plugin-support-modern-hooks",
|
26
26
|
setup(api) {
|
27
27
|
var _internalContext_pluginAPI;
|
@@ -46,5 +46,5 @@ const builderHookPlugin = (options) => ({
|
|
46
46
|
});
|
47
47
|
// Annotate the CommonJS export names for ESM import in node:
|
48
48
|
0 && (module.exports = {
|
49
|
-
|
49
|
+
builderPluginAdapterHooks
|
50
50
|
});
|
@@ -51,7 +51,7 @@ function applyBuilderPlugins(builder, options) {
|
|
51
51
|
}
|
52
52
|
function _applyBuilderPlugins() {
|
53
53
|
_applyBuilderPlugins = _async_to_generator(function(builder, options) {
|
54
|
-
var _ref, builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR,
|
54
|
+
var _ref, builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR, builderPluginAdapterHooks, normalizedConfig, pluginNodePolyfill;
|
55
55
|
return _ts_generator(this, function(_state) {
|
56
56
|
switch (_state.label) {
|
57
57
|
case 0:
|
@@ -60,12 +60,12 @@ function _applyBuilderPlugins() {
|
|
60
60
|
import("../shared/builderPlugins/index.js")
|
61
61
|
];
|
62
62
|
case 1:
|
63
|
-
_ref = _state.sent(), builderPluginAdapterBasic = _ref.builderPluginAdapterBasic, builderPluginAdapterHtml = _ref.builderPluginAdapterHtml, builderPluginAdapterSSR = _ref.builderPluginAdapterSSR,
|
63
|
+
_ref = _state.sent(), builderPluginAdapterBasic = _ref.builderPluginAdapterBasic, builderPluginAdapterHtml = _ref.builderPluginAdapterHtml, builderPluginAdapterSSR = _ref.builderPluginAdapterSSR, builderPluginAdapterHooks = _ref.builderPluginAdapterHooks;
|
64
64
|
builder.addPlugins([
|
65
65
|
builderPluginAdapterBasic(),
|
66
66
|
builderPluginAdapterSSR(options),
|
67
67
|
builderPluginAdapterHtml(options),
|
68
|
-
|
68
|
+
builderPluginAdapterHooks(options)
|
69
69
|
]);
|
70
70
|
builder.addPlugins([
|
71
71
|
builderPluginAdapterCopy(options)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
|
2
2
|
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
|
3
|
-
var
|
3
|
+
var builderPluginAdapterHooks = function(options) {
|
4
4
|
return {
|
5
5
|
name: "builder-plugin-support-modern-hooks",
|
6
6
|
setup: function setup(api) {
|
@@ -116,5 +116,5 @@ var builderHookPlugin = function(options) {
|
|
116
116
|
};
|
117
117
|
};
|
118
118
|
export {
|
119
|
-
|
119
|
+
builderPluginAdapterHooks
|
120
120
|
};
|
@@ -20,12 +20,12 @@ async function generateBuilder(options, bundlerType) {
|
|
20
20
|
return builder;
|
21
21
|
}
|
22
22
|
async function applyBuilderPlugins(builder, options) {
|
23
|
-
const { builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR,
|
23
|
+
const { builderPluginAdapterBasic, builderPluginAdapterHtml, builderPluginAdapterSSR, builderPluginAdapterHooks } = await import("../shared/builderPlugins/index.js");
|
24
24
|
builder.addPlugins([
|
25
25
|
builderPluginAdapterBasic(),
|
26
26
|
builderPluginAdapterSSR(options),
|
27
27
|
builderPluginAdapterHtml(options),
|
28
|
-
|
28
|
+
builderPluginAdapterHooks(options)
|
29
29
|
]);
|
30
30
|
builder.addPlugins([
|
31
31
|
builderPluginAdapterCopy(options)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
const
|
1
|
+
const builderPluginAdapterHooks = (options) => ({
|
2
2
|
name: "builder-plugin-support-modern-hooks",
|
3
3
|
setup(api) {
|
4
4
|
var _internalContext_pluginAPI;
|
@@ -22,5 +22,5 @@ const builderHookPlugin = (options) => ({
|
|
22
22
|
}
|
23
23
|
});
|
24
24
|
export {
|
25
|
-
|
25
|
+
builderPluginAdapterHooks
|
26
26
|
};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { RsbuildPlugin } from '@rsbuild/core';
|
2
2
|
import type { Bundler } from '../../../types';
|
3
3
|
import type { BuilderOptions } from '../types';
|
4
|
-
export declare const
|
4
|
+
export declare const builderPluginAdapterHooks: <B extends Bundler>(options: BuilderOptions<B>) => RsbuildPlugin;
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.65.0",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -91,20 +91,20 @@
|
|
91
91
|
"ndepe": "0.1.5",
|
92
92
|
"pkg-types": "^1.1.0",
|
93
93
|
"std-env": "^3.7.0",
|
94
|
-
"@modern-js/core": "2.
|
95
|
-
"@modern-js/
|
96
|
-
"@modern-js/plugin
|
97
|
-
"@modern-js/plugin-
|
98
|
-
"@modern-js/
|
99
|
-
"@modern-js/
|
100
|
-
"@modern-js/
|
101
|
-
"@modern-js/
|
102
|
-
"@modern-js/server
|
103
|
-
"@modern-js/server-
|
104
|
-
"@modern-js/
|
105
|
-
"@modern-js/types": "2.
|
106
|
-
"@modern-js/
|
107
|
-
"@modern-js/
|
94
|
+
"@modern-js/core": "2.65.0",
|
95
|
+
"@modern-js/node-bundle-require": "2.65.0",
|
96
|
+
"@modern-js/plugin": "2.65.0",
|
97
|
+
"@modern-js/plugin-data-loader": "2.65.0",
|
98
|
+
"@modern-js/plugin-i18n": "2.65.0",
|
99
|
+
"@modern-js/plugin-v2": "2.65.0",
|
100
|
+
"@modern-js/prod-server": "2.65.0",
|
101
|
+
"@modern-js/rsbuild-plugin-esbuild": "2.65.0",
|
102
|
+
"@modern-js/server": "2.65.0",
|
103
|
+
"@modern-js/server-core": "2.65.0",
|
104
|
+
"@modern-js/server-utils": "2.65.0",
|
105
|
+
"@modern-js/types": "2.65.0",
|
106
|
+
"@modern-js/uni-builder": "2.65.0",
|
107
|
+
"@modern-js/utils": "2.65.0"
|
108
108
|
},
|
109
109
|
"devDependencies": {
|
110
110
|
"@rsbuild/plugin-webpack-swc": "1.0.9",
|
@@ -116,8 +116,8 @@
|
|
116
116
|
"tsconfig-paths": "^4.2.0",
|
117
117
|
"typescript": "^5",
|
118
118
|
"webpack": "^5.98.0",
|
119
|
-
"@scripts/build": "2.
|
120
|
-
"@scripts/jest-config": "2.
|
119
|
+
"@scripts/build": "2.65.0",
|
120
|
+
"@scripts/jest-config": "2.65.0"
|
121
121
|
},
|
122
122
|
"peerDependencies": {
|
123
123
|
"ts-node": "^10.7.0",
|
@@ -134,7 +134,8 @@
|
|
134
134
|
"sideEffects": false,
|
135
135
|
"publishConfig": {
|
136
136
|
"registry": "https://registry.npmjs.org/",
|
137
|
-
"access": "public"
|
137
|
+
"access": "public",
|
138
|
+
"provenance": true
|
138
139
|
},
|
139
140
|
"scripts": {
|
140
141
|
"new": "modern-lib new",
|