@modern-js/plugin 3.0.0-alpha.2 → 3.0.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.
Files changed (54) hide show
  1. package/dist/esm-node/cli/api.mjs +0 -1
  2. package/dist/esm-node/cli/context.mjs +0 -1
  3. package/dist/esm-node/cli/hooks.mjs +0 -1
  4. package/dist/esm-node/cli/index.mjs +0 -1
  5. package/dist/esm-node/cli/run/config/createLoadedConfig.mjs +0 -1
  6. package/dist/esm-node/cli/run/config/createResolvedConfig.mjs +0 -1
  7. package/dist/esm-node/cli/run/config/loadConfig.mjs +0 -1
  8. package/dist/esm-node/cli/run/create.mjs +0 -1
  9. package/dist/esm-node/cli/run/index.mjs +0 -1
  10. package/dist/esm-node/cli/run/run.mjs +0 -1
  11. package/dist/esm-node/cli/run/types.mjs +0 -1
  12. package/dist/esm-node/cli/run/utils/checkIsDuplicationPlugin.mjs +0 -1
  13. package/dist/esm-node/cli/run/utils/commander.mjs +0 -1
  14. package/dist/esm-node/cli/run/utils/createFileWatcher.mjs +0 -1
  15. package/dist/esm-node/cli/run/utils/debug.mjs +0 -1
  16. package/dist/esm-node/cli/run/utils/initAppDir.mjs +0 -1
  17. package/dist/esm-node/cli/run/utils/mergeConfig.mjs +0 -1
  18. package/dist/esm-node/hooks.mjs +0 -1
  19. package/dist/esm-node/index.mjs +0 -1
  20. package/dist/esm-node/manager.mjs +0 -1
  21. package/dist/esm-node/runtime/api.mjs +0 -1
  22. package/dist/esm-node/runtime/context.mjs +0 -1
  23. package/dist/esm-node/runtime/hooks.mjs +0 -1
  24. package/dist/esm-node/runtime/index.mjs +0 -1
  25. package/dist/esm-node/runtime/run/create.mjs +0 -1
  26. package/dist/esm-node/runtime/run/index.mjs +0 -1
  27. package/dist/esm-node/runtime/run/types.mjs +0 -1
  28. package/dist/esm-node/server/api.mjs +0 -1
  29. package/dist/esm-node/server/context.mjs +0 -1
  30. package/dist/esm-node/server/hooks.mjs +0 -1
  31. package/dist/esm-node/server/index.mjs +0 -1
  32. package/dist/esm-node/server/run/create.mjs +0 -1
  33. package/dist/esm-node/server/run/index.mjs +0 -1
  34. package/dist/esm-node/server/run/types.mjs +0 -1
  35. package/dist/esm-node/types/cli/api.mjs +0 -1
  36. package/dist/esm-node/types/cli/context.mjs +0 -1
  37. package/dist/esm-node/types/cli/hooks.mjs +0 -1
  38. package/dist/esm-node/types/cli/index.mjs +0 -1
  39. package/dist/esm-node/types/cli/plugin.mjs +0 -1
  40. package/dist/esm-node/types/hooks.mjs +0 -1
  41. package/dist/esm-node/types/index.mjs +0 -1
  42. package/dist/esm-node/types/plugin.mjs +0 -1
  43. package/dist/esm-node/types/runtime/api.mjs +0 -1
  44. package/dist/esm-node/types/runtime/context.mjs +0 -1
  45. package/dist/esm-node/types/runtime/hooks.mjs +0 -1
  46. package/dist/esm-node/types/runtime/index.mjs +0 -1
  47. package/dist/esm-node/types/runtime/plugin.mjs +0 -1
  48. package/dist/esm-node/types/server/api.mjs +0 -1
  49. package/dist/esm-node/types/server/context.mjs +0 -1
  50. package/dist/esm-node/types/server/hooks.mjs +0 -1
  51. package/dist/esm-node/types/server/index.mjs +0 -1
  52. package/dist/esm-node/types/server/plugin.mjs +0 -1
  53. package/dist/esm-node/types/utils.mjs +0 -1
  54. package/package.json +9 -9
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { assign as lodash_assign } from "@modern-js/utils/lodash";
4
3
  import { debug } from "./run/utils/debug.mjs";
5
4
  function initPluginAPI({ context, pluginManager }) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import { initHooks } from "./hooks.mjs";
5
4
  function initAppContext(params) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createAsyncHook, createCollectAsyncHook } from "../hooks.mjs";
4
3
  function initHooks() {
5
4
  return {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { initPluginAPI } from "./api.mjs";
4
3
  import { createContext, initAppContext } from "./context.mjs";
5
4
  import { initHooks } from "./hooks.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { CONFIG_FILE_EXTENSIONS, chalk, fs, getCommand, getNodeEnv, isDevCommand, logger } from "@modern-js/utils";
4
3
  import { mergeConfig } from "../utils/mergeConfig.mjs";
5
4
  import { getConfigFilePath, loadConfig } from "./loadConfig.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDebugger } from "@modern-js/utils";
4
3
  import { mergeConfig } from "../utils/mergeConfig.mjs";
5
4
  const debug = createDebugger('resolve-config');
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
3
  import path from "path";
5
4
  import { compatibleRequire, fs, globby } from "@modern-js/utils";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDebugger, logger } from "@modern-js/utils";
4
3
  import { program } from "@modern-js/utils/commander";
5
4
  import { loadEnv } from "@rsbuild/core";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createCli } from "./create.mjs";
4
3
  import { createLoadedConfig } from "./config/createLoadedConfig.mjs";
5
4
  import { initAppDir } from "./utils/initAppDir.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { logger } from "@modern-js/utils";
4
3
  import { cli } from "./index.mjs";
5
4
  const run = async (options)=>{
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { logger } from "@modern-js/utils";
4
3
  function checkIsDuplicationPlugin(plugins) {
5
4
  const set = new Set();
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { program } from "@modern-js/utils";
4
3
  const setProgramVersion = (version = 'unknown')=>{
5
4
  const name = process.argv[1];
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import crypto_0 from "crypto";
4
3
  import { readFileSync } from "fs";
5
4
  import { join, resolve } from "path";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDebugger } from "@modern-js/utils";
4
3
  const debug = createDebugger('plugin');
5
4
  export { debug };
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import { pkgUp } from "@modern-js/utils";
5
4
  const initAppDir = async (currentDir)=>{
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { ensureArray, isOverriddenConfigKey } from "@modern-js/utils";
4
3
  import { isEqual, isFunction, mergeWith } from "@modern-js/utils/lodash";
5
4
  const mergeConfig = (configs)=>mergeWith({}, ...configs, (target, source, key)=>{
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  function createAsyncInterruptHook() {
4
3
  const callbacks = [];
5
4
  const tap = (cb)=>{
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createPluginManager } from "./manager.mjs";
4
3
  import { createAsyncHook, createAsyncInterruptHook, createAsyncPipelineHook, createCollectAsyncHook, createCollectSyncHook, createSyncHook } from "./hooks.mjs";
5
4
  export { createAsyncHook, createAsyncInterruptHook, createAsyncPipelineHook, createCollectAsyncHook, createCollectSyncHook, createPluginManager, createSyncHook };
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const isFunction = (obj)=>'function' == typeof obj;
4
3
  function validatePlugin(plugin) {
5
4
  const type = typeof plugin;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { merge } from "@modern-js/runtime-utils/merge";
4
3
  function initPluginAPI({ context, plugins }) {
5
4
  const { hooks, extendsHooks } = context;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { initHooks } from "./hooks.mjs";
4
3
  function initRuntimeContext() {
5
4
  return {};
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createAsyncInterruptHook, createCollectSyncHook, createSyncHook } from "../hooks.mjs";
4
3
  function initHooks() {
5
4
  return {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { initPluginAPI } from "./api.mjs";
4
3
  import { createRuntimeContext, initRuntimeContext } from "./context.mjs";
5
4
  import { initHooks } from "./hooks.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { merge } from "@modern-js/runtime-utils/merge";
4
3
  import { createPluginManager } from "../../manager.mjs";
5
4
  import { initPluginAPI } from "../api.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createRuntime } from "./create.mjs";
4
3
  const runtime = createRuntime();
5
4
  export { runtime };
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createDebugger } from "@modern-js/utils";
4
3
  import { assign as lodash_assign } from "@modern-js/utils/lodash";
5
4
  const debug = createDebugger('plugin-server-v2');
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { initHooks } from "./hooks.mjs";
4
3
  function initServerContext(params) {
5
4
  const { options, plugins } = params;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createAsyncHook } from "../hooks.mjs";
4
3
  function initHooks() {
5
4
  return {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { initPluginAPI } from "./api.mjs";
4
3
  import { createServerContext, initServerContext } from "./context.mjs";
5
4
  import { initHooks } from "./hooks.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createPluginManager } from "../../manager.mjs";
4
3
  import { initPluginAPI } from "../api.mjs";
5
4
  import { createServerContext, initServerContext } from "../context.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createServer } from "./create.mjs";
4
3
  const server = createServer();
5
4
  export { createServer, server };
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "3.0.0-alpha.2",
18
+ "version": "3.0.0",
19
19
  "types": "./dist/types/index.d.ts",
20
20
  "main": "./dist/cjs/index.js",
21
21
  "exports": {
@@ -82,19 +82,19 @@
82
82
  }
83
83
  },
84
84
  "dependencies": {
85
- "@rsbuild/core": "2.0.0-beta.0",
85
+ "@rsbuild/core": "2.0.0-beta.1",
86
86
  "@swc/helpers": "^0.5.17",
87
- "jiti": "2.6.1",
88
- "@modern-js/runtime-utils": "3.0.0-alpha.2",
89
- "@modern-js/types": "3.0.0-alpha.2",
90
- "@modern-js/utils": "3.0.0-alpha.2"
87
+ "jiti": "^2.6.1",
88
+ "@modern-js/runtime-utils": "3.0.0",
89
+ "@modern-js/types": "3.0.0",
90
+ "@modern-js/utils": "3.0.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@rslib/core": "0.19.3",
93
+ "@rslib/core": "0.19.4",
94
94
  "@types/node": "^20",
95
- "@types/react": "^19.2.9",
95
+ "@types/react": "^19.2.10",
96
96
  "typescript": "^5",
97
- "@modern-js/builder": "3.0.0-alpha.2",
97
+ "@modern-js/builder": "3.0.0",
98
98
  "@modern-js/rslib": "2.68.10"
99
99
  },
100
100
  "sideEffects": false,