@modern-js/builder 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.
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createRsbuild } from "@rsbuild/core";
4
3
  import { rsbuildRscPlugin } from "./rsc/plugins/rsbuild-rsc-plugin.mjs";
5
4
  import { parseCommonConfig } from "./shared/parseCommonConfig.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createRspackBuilder, parseConfig } from "./createBuilder.mjs";
4
3
  import { logger } from "@rsbuild/core";
5
4
  import { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX, SERVICE_WORKER_ENVIRONMENT_NAME, castArray, isHtmlDisabled } from "./shared/utils.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const pluginDevtool = (options)=>({
4
3
  name: 'builder:devtool',
5
4
  setup (api) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import node_fs from "node:fs";
4
3
  import { join } from "node:path";
5
4
  async function isFileExists(file) {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { join } from "node:path";
4
3
  import { SERVICE_WORKER_ENVIRONMENT_NAME, getBrowserslistWithDefault } from "../shared/utils.mjs";
5
4
  const pluginEnvironmentDefaults = (distPath = {})=>({
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { applyOptionsChain } from "@modern-js/utils";
4
3
  const pluginGlobalVars = (options)=>({
5
4
  name: 'builder:global-vars',
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { merge } from "ts-deepmerge";
4
3
  function applyRemoveConsole(options, config) {
5
4
  const { removeConsole } = config.performance;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { generateManifest } from "../shared/manifest.mjs";
4
3
  const pluginManifest = ()=>({
5
4
  name: 'builder:manifest',
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { createRequire } from "node:module";
4
3
  import { pathToFileURL } from "node:url";
5
4
  import { applyOptionsChain, isProd } from "@modern-js/utils";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { RUNTIME_CHUNK_NAME, RUNTIME_CHUNK_REGEX } from "../shared/utils.mjs";
4
3
  const pluginRuntimeChunk = (disableInlineRuntimeChunk)=>({
5
4
  name: 'builder:runtime-chunk',
@@ -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 { parse } from "@swc/core";
5
4
  const rspackRscLayerName = "react-server";
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import node_path from "node:path";
4
4
  import fs_extra from "@modern-js/utils/fs-extra";
5
5
  import { logger } from "@rsbuild/core";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import path from "path";
4
3
  import { sharedData } from "../common.mjs";
5
4
  const hasExtension = (filePath)=>'' !== path.extname(filePath);
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { findRootIssuer, getRscBuildInfo, isCssModule, rspackRscLayerName, setRscBuildInfo, sharedData } from "../common.mjs";
4
3
  const rspack_rsc_server_plugin_resourcePath2Entries = new Map();
5
4
  class RscServerPlugin {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { isServerModule, parseSource, sharedData } from "./common.mjs";
4
3
  async function rscClientLoader(source, sourceMap) {
5
4
  this.cacheable(true);
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { setRscBuildInfo } from "./common.mjs";
4
3
  function rscCssLoader(source) {
5
4
  this._module && setRscBuildInfo(this._module, {
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import path from "path";
4
4
  import { transform } from "@swc/core";
5
5
  import { setRscBuildInfo } from "./common.mjs";
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { getExportNames, isServerModule, parseSource, setRscBuildInfo } from "./common.mjs";
4
3
  async function rscSsrLoader(source, sourceMap) {
5
4
  this.cacheable(true);
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { applyOptionsChain, isProd } from "@modern-js/utils";
4
3
  import { merge } from "ts-deepmerge";
5
4
  const defaultDevConfig = {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import browserslist from "browserslist";
4
3
  const CSS_FEATURES_BROWSER = {
5
4
  customProperties: {
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const generateManifest = (seed, files, entries)=>{
4
3
  const manifestFiles = files.reduce((manifest, file)=>{
5
4
  manifest[file.name] = file.path;
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import { mergeRsbuildConfig } from "@rsbuild/core";
4
3
  import { pluginCssMinimizer } from "@rsbuild/plugin-css-minimizer";
5
4
  import { pluginLess } from "@rsbuild/plugin-less";
@@ -1,5 +1,5 @@
1
1
  import __rslib_shim_module__ from "node:module";
2
- const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(import.meta.url);
2
+ const require = /*#__PURE__*/ __rslib_shim_module__.createRequire(/*#__PURE__*/ (()=>import.meta.url)());
3
3
  import { fileURLToPath as __rspack_fileURLToPath } from "node:url";
4
4
  import { dirname as __rspack_dirname } from "node:path";
5
5
  import path from "path";
@@ -1,4 +1,3 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  const rscEmptyModule = {};
4
3
  export { rscEmptyModule as default };
@@ -1,5 +1,4 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
3
2
  import browserslist from "browserslist";
4
3
  const RUNTIME_CHUNK_NAME = 'builder-runtime';
5
4
  const RUNTIME_CHUNK_REGEX = new RegExp(`${RUNTIME_CHUNK_NAME}([.].+)?\\.js$`);
@@ -1,2 +1 @@
1
1
  import "node:module";
2
- /*#__PURE__*/ import.meta.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/builder",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0",
4
4
  "description": "A builder for Modern.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@rsbuild/core": "2.0.0-beta.0",
29
+ "@rsbuild/core": "2.0.0-beta.1",
30
30
  "@rsbuild/plugin-assets-retry": "1.5.1",
31
31
  "@rsbuild/plugin-check-syntax": "1.6.1",
32
32
  "@rsbuild/plugin-css-minimizer": "1.1.1",
@@ -40,7 +40,7 @@
40
40
  "@rsbuild/plugin-typed-css-modules": "1.2.1",
41
41
  "@swc/core": "1.15.10",
42
42
  "@swc/helpers": "^0.5.17",
43
- "autoprefixer": "10.4.23",
43
+ "autoprefixer": "10.4.24",
44
44
  "browserslist": "4.28.1",
45
45
  "core-js": "^3.48.0",
46
46
  "cssnano": "6.1.2",
@@ -56,19 +56,19 @@
56
56
  "postcss-page-break": "3.0.4",
57
57
  "rspack-manifest-plugin": "5.2.1",
58
58
  "ts-deepmerge": "7.0.3",
59
- "tsx": "^4.21.0",
60
- "@modern-js/flight-server-transform-plugin": "3.0.0-alpha.2",
61
- "@modern-js/utils": "3.0.0-alpha.2"
59
+ "jiti": "^2.6.1",
60
+ "@modern-js/flight-server-transform-plugin": "3.0.0",
61
+ "@modern-js/utils": "3.0.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@rslib/core": "0.19.3",
64
+ "@rslib/core": "0.19.4",
65
65
  "@types/html-minifier-terser": "^7.0.2",
66
66
  "@types/lodash": "^4.17.23",
67
- "react": "^19.2.3",
67
+ "react": "^19.2.4",
68
68
  "terser": "^5.46.0",
69
69
  "typescript": "^5.3.0",
70
70
  "@modern-js/rslib": "2.68.10",
71
- "@modern-js/types": "3.0.0-alpha.2",
71
+ "@modern-js/types": "3.0.0",
72
72
  "@scripts/rstest-config": "2.66.0"
73
73
  },
74
74
  "publishConfig": {