@rsbuild/core 0.7.2 → 0.7.3
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/compiled/css-loader/index.js +20 -20
- package/compiled/postcss-load-config/index.js +102 -33
- package/compiled/postcss-load-config/package.json +1 -1
- package/compiled/postcss-loader/index.js +16 -16
- package/compiled/rspack-manifest-plugin/index.js +4 -4
- package/dist/index.cjs +357 -169
- package/dist/index.js +362 -168
- package/dist-types/index.d.ts +1 -1
- package/dist-types/plugins/nonce.d.ts +2 -0
- package/dist-types/plugins/sri.d.ts +2 -0
- package/dist-types/server/devServer.d.ts +1 -1
- package/dist-types/server/httpServer.d.ts +1 -1
- package/dist-types/server/middlewares.d.ts +1 -1
- package/dist-types/server/prodServer.d.ts +1 -1
- package/dist-types/server/socketServer.d.ts +1 -1
- package/package.json +6 -5
package/dist-types/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export { logger } from '@rsbuild/shared';
|
|
|
15
15
|
export { mergeRsbuildConfig } from './mergeConfig';
|
|
16
16
|
export { PLUGIN_SWC_NAME, PLUGIN_CSS_NAME } from './constants';
|
|
17
17
|
export type { RsbuildConfig, DevConfig, HtmlConfig, ToolsConfig, SourceConfig, ServerConfig, OutputConfig, SecurityConfig, PerformanceConfig, ModuleFederationConfig, NormalizedConfig, NormalizedDevConfig, NormalizedHtmlConfig, NormalizedToolsConfig, NormalizedSourceConfig, NormalizedServerConfig, NormalizedOutputConfig, NormalizedSecurityConfig, NormalizedPerformanceConfig, NormalizedModuleFederationConfig, RsbuildPlugin, RsbuildPlugins, RsbuildPluginAPI, RsbuildInstance, RsbuildProvider, CreateRsbuildOptions, } from './types';
|
|
18
|
-
export type { RsbuildMode, RsbuildEntry, RsbuildTarget, RsbuildContext, InspectConfigOptions, Minify, Polyfill, PrintUrls, PublicDir, Decorators, RspackRule, WatchFiles, CSSModules, CrossOrigin, ConsoleType, SplitChunks, BundlerChain, ClientConfig, ScriptInject,
|
|
18
|
+
export type { RsbuildMode, RsbuildEntry, RsbuildTarget, RsbuildContext, InspectConfigOptions, Minify, Polyfill, PrintUrls, PublicDir, Decorators, RspackRule, WatchFiles, CSSModules, CrossOrigin, ConsoleType, SplitChunks, BundlerChain, ClientConfig, ScriptInject, ConfigChain, PostCSSPlugin, ScriptLoading, LegalComments, AliasStrategy, FilenameConfig, DistPathConfig, OutputStructure, ChainIdentifier, PreconnectOption, CSSLoaderOptions, ModifyChainUtils, StyleLoaderOptions, PostCSSLoaderOptions, ConfigChainWithContext, ModifyRspackConfigUtils, CSSModulesLocalsConvention, OnExitFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnBeforeCreateCompilerFn, OnCloseDevServerFn, OnDevCompileDoneFn, ModifyBundlerChainFn, ModifyRspackConfigFn, ModifyRsbuildConfigFn, TransformFn, TransformHandler, } from '@rsbuild/shared';
|
|
19
19
|
export {
|
|
20
20
|
/**
|
|
21
21
|
* @private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type CreateDevServerOptions, type StartDevServerOptions } from '@rsbuild/shared';
|
|
2
|
-
import type Connect from '../../compiled/connect
|
|
2
|
+
import type Connect from '../../compiled/connect';
|
|
3
3
|
import type { CreateDevMiddlewareReturns } from '../provider/createCompiler';
|
|
4
4
|
import type { InternalContext, NormalizedConfig } from '../types';
|
|
5
5
|
import { type UpgradeEvent } from './helper';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
4
|
import type { ServerConfig } from '@rsbuild/shared';
|
|
5
|
-
import type Connect from '../../compiled/connect
|
|
5
|
+
import type Connect from '../../compiled/connect';
|
|
6
6
|
export declare const createHttpServer: ({ serverConfig, middlewares, }: {
|
|
7
7
|
serverConfig: ServerConfig;
|
|
8
8
|
middlewares: Connect.Server;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type HtmlFallback, type RequestHandler as Middleware, type Rspack } from '@rsbuild/shared';
|
|
2
|
-
import type Connect from '../../compiled/connect
|
|
2
|
+
import type Connect from '../../compiled/connect';
|
|
3
3
|
export declare const faviconFallbackMiddleware: Middleware;
|
|
4
4
|
export declare const getRequestLoggerMiddleware: () => Promise<Connect.NextHandleFunction>;
|
|
5
5
|
export declare const notFoundMiddleware: Middleware;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { Server } from 'node:http';
|
|
4
4
|
import type { Http2SecureServer } from 'node:http2';
|
|
5
5
|
import { type PreviewServerOptions, type ServerConfig } from '@rsbuild/shared';
|
|
6
|
-
import type Connect from '../../compiled/connect
|
|
6
|
+
import type Connect from '../../compiled/connect';
|
|
7
7
|
import type { InternalContext, NormalizedConfig } from '../types';
|
|
8
8
|
import { type StartServerResult } from './helper';
|
|
9
9
|
type RsbuildProdServerOptions = {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import type { IncomingMessage } from 'node:http';
|
|
4
4
|
import type { Socket } from 'node:net';
|
|
5
5
|
import { type DevConfig, type Stats } from '@rsbuild/shared';
|
|
6
|
-
import type Ws from '../../compiled/ws
|
|
6
|
+
import type Ws from '../../compiled/ws';
|
|
7
7
|
export declare class SocketServer {
|
|
8
8
|
private wsServer;
|
|
9
9
|
private readonly sockets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "The Rspack-based build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"types.d.ts"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rspack/core": "0.7.
|
|
49
|
+
"@rspack/core": "0.7.1",
|
|
50
50
|
"@swc/helpers": "0.5.3",
|
|
51
51
|
"core-js": "~3.36.0",
|
|
52
52
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.7.2",
|
|
53
53
|
"postcss": "^8.4.38",
|
|
54
|
-
"@rsbuild/shared": "0.7.
|
|
54
|
+
"@rsbuild/shared": "0.7.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/connect": "3.4.38",
|
|
@@ -70,13 +70,14 @@
|
|
|
70
70
|
"launch-editor-middleware": "^2.6.1",
|
|
71
71
|
"on-finished": "2.4.1",
|
|
72
72
|
"open": "^8.4.0",
|
|
73
|
-
"postcss-load-config": "
|
|
73
|
+
"postcss-load-config": "6.0.1",
|
|
74
74
|
"postcss-loader": "8.1.1",
|
|
75
75
|
"postcss-value-parser": "4.2.0",
|
|
76
76
|
"prebundle": "1.1.0",
|
|
77
77
|
"rspack-manifest-plugin": "5.0.0",
|
|
78
78
|
"sirv": "^2.0.4",
|
|
79
79
|
"style-loader": "3.3.4",
|
|
80
|
+
"tsc-alias": "^1.8.10",
|
|
80
81
|
"typescript": "^5.4.2",
|
|
81
82
|
"webpack": "^5.91.0",
|
|
82
83
|
"webpack-dev-middleware": "7.2.1",
|
|
@@ -91,7 +92,7 @@
|
|
|
91
92
|
"registry": "https://registry.npmjs.org/"
|
|
92
93
|
},
|
|
93
94
|
"scripts": {
|
|
94
|
-
"build": "modern build",
|
|
95
|
+
"build": "modern build && tsc-alias -p tsconfig.json",
|
|
95
96
|
"dev": "modern build --watch",
|
|
96
97
|
"prebundle": "prebundle"
|
|
97
98
|
}
|