@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.
@@ -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, builderHookPlugin } = await import("../shared/builderPlugins/index.js");
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
- builderHookPlugin(options)
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
- builderHookPlugin: () => builderHookPlugin
21
+ builderPluginAdapterHooks: () => builderPluginAdapterHooks
22
22
  });
23
23
  module.exports = __toCommonJS(builderHooks_exports);
24
- const builderHookPlugin = (options) => ({
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
- builderHookPlugin
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, builderHookPlugin, normalizedConfig, pluginNodePolyfill;
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, builderHookPlugin = _ref.builderHookPlugin;
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
- builderHookPlugin(options)
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 builderHookPlugin = function(options) {
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
- builderHookPlugin
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, builderHookPlugin } = await import("../shared/builderPlugins/index.js");
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
- builderHookPlugin(options)
28
+ builderPluginAdapterHooks(options)
29
29
  ]);
30
30
  builder.addPlugins([
31
31
  builderPluginAdapterCopy(options)
@@ -1,4 +1,4 @@
1
- const builderHookPlugin = (options) => ({
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
- builderHookPlugin
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 builderHookPlugin: <B extends Bundler>(options: BuilderOptions<B>) => RsbuildPlugin;
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.64.3-alpha.0",
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.64.3",
95
- "@modern-js/plugin": "2.64.3",
96
- "@modern-js/plugin-i18n": "2.64.3",
97
- "@modern-js/plugin-v2": "2.64.3",
98
- "@modern-js/prod-server": "2.64.3",
99
- "@modern-js/server": "2.64.3",
100
- "@modern-js/rsbuild-plugin-esbuild": "2.64.3",
101
- "@modern-js/node-bundle-require": "2.64.3",
102
- "@modern-js/server-core": "2.64.3",
103
- "@modern-js/server-utils": "2.64.3",
104
- "@modern-js/uni-builder": "2.64.3",
105
- "@modern-js/types": "2.64.3",
106
- "@modern-js/utils": "2.64.3",
107
- "@modern-js/plugin-data-loader": "2.64.3"
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.64.3",
120
- "@scripts/jest-config": "2.64.3"
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",