@rsbuild/core 0.1.6 → 0.1.8
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/cli/commands.js +1 -1
- package/dist/cli/prepare.js +1 -1
- package/dist/createRsbuild.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/plugins/html.js +5 -5
- package/dist/plugins/inlineChunk.js +1 -1
- package/dist/plugins/networkPerformance.js +1 -1
- package/dist/plugins/preloadOrPrefetch.js +1 -1
- package/dist/{rspack-provider → provider}/core/createContext.js +1 -1
- package/dist/{rspack-provider → provider}/index.d.ts +5 -1
- package/dist/{rspack-provider → provider}/index.js +14 -3
- package/dist/{rspack-provider → provider}/plugins/css.js +1 -1
- package/dist/server/devServer.js +2 -1
- package/dist/server/prodServer.js +2 -1
- package/dist/types.d.ts +1 -1
- package/package.json +7 -10
- /package/dist/{rspack-provider → provider}/config.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/config.js +0 -0
- /package/dist/{rspack-provider → provider}/core/build.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/build.js +0 -0
- /package/dist/{rspack-provider → provider}/core/createCompiler.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/createCompiler.js +0 -0
- /package/dist/{rspack-provider → provider}/core/createContext.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/devMiddleware.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/devMiddleware.js +0 -0
- /package/dist/{rspack-provider → provider}/core/initConfigs.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/initConfigs.js +0 -0
- /package/dist/{rspack-provider → provider}/core/initHooks.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/initHooks.js +0 -0
- /package/dist/{rspack-provider → provider}/core/initPlugins.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/initPlugins.js +0 -0
- /package/dist/{rspack-provider → provider}/core/inspectConfig.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/inspectConfig.js +0 -0
- /package/dist/{rspack-provider → provider}/core/rspackConfig.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/core/rspackConfig.js +0 -0
- /package/dist/{rspack-provider → provider}/css-modules-typescript-pre-loader/index.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/css-modules-typescript-pre-loader/index.js +0 -0
- /package/dist/{rspack-provider → provider}/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/basic.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/basic.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/css.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/hmr.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/hmr.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/less.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/less.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/minimize.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/minimize.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/output.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/output.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/progress.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/progress.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/resolve.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/resolve.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/rspackProfile.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/rspackProfile.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/sass.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/sass.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/swc.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/swc.js +0 -0
- /package/dist/{rspack-provider → provider}/plugins/transition.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/plugins/transition.js +0 -0
- /package/dist/{rspack-provider → provider}/provider.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/provider.js +0 -0
- /package/dist/{rspack-provider → provider}/shared.d.ts +0 -0
- /package/dist/{rspack-provider → provider}/shared.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlAppIconPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlAppIconPlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlBasicPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlBasicPlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlCrossOriginPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlCrossOriginPlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlNetworkPerformancePlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlNetworkPerformancePlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlNoncePlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlNoncePlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/doesChunkBelongToHtml.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/doesChunkBelongToHtml.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/index.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/index.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/type.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/type.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/index.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/index.js +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlTagsPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/HtmlTagsPlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/InlineChunkHtmlPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/InlineChunkHtmlPlugin.js +0 -0
- /package/dist/{rspack-plugins → rspack}/RemoveCssSourcemapPlugin.d.ts +0 -0
- /package/dist/{rspack-plugins → rspack}/RemoveCssSourcemapPlugin.js +0 -0
package/dist/cli/commands.js
CHANGED
|
@@ -81,7 +81,7 @@ async function init({
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
function runCli() {
|
|
84
|
-
import_commander.program.name("rsbuild").usage("<command> [options]").version("0.1.
|
|
84
|
+
import_commander.program.name("rsbuild").usage("<command> [options]").version("0.1.8");
|
|
85
85
|
import_commander.program.command("dev").option("--open", "open the page in browser on startup").option(
|
|
86
86
|
"--port <port>",
|
|
87
87
|
"specify a port number for Rsbuild Server to listen"
|
package/dist/cli/prepare.js
CHANGED
|
@@ -34,7 +34,7 @@ function prepareCli() {
|
|
|
34
34
|
if (!npm_execpath || npm_execpath.includes("npx-cli.js")) {
|
|
35
35
|
console.log();
|
|
36
36
|
}
|
|
37
|
-
import_rslog.logger.greet(` ${`Rsbuild v${"0.1.
|
|
37
|
+
import_rslog.logger.greet(` ${`Rsbuild v${"0.1.8"}`}
|
|
38
38
|
`);
|
|
39
39
|
}
|
|
40
40
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/createRsbuild.js
CHANGED
|
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(createRsbuild_exports);
|
|
|
34
34
|
var import_shared = require("@rsbuild/shared");
|
|
35
35
|
var import_plugins = require("./plugins");
|
|
36
36
|
const getRspackProvider = async (rsbuildConfig) => {
|
|
37
|
-
const { rspackProvider } = await Promise.resolve().then(() => __toESM(require("./
|
|
37
|
+
const { rspackProvider } = await Promise.resolve().then(() => __toESM(require("./provider")));
|
|
38
38
|
return rspackProvider({
|
|
39
39
|
rsbuildConfig
|
|
40
40
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
export { createRsbuild } from './createRsbuild';
|
|
6
6
|
export { defineConfig } from './cli/config';
|
|
7
7
|
export { logger, mergeRsbuildConfig } from '@rsbuild/shared';
|
|
8
|
-
export type { Rspack } from './
|
|
8
|
+
export type { Rspack } from './provider';
|
|
9
9
|
export type { RsbuildConfig, NormalizedConfig, RsbuildPlugin, RsbuildPluginAPI } from './types';
|
|
10
10
|
export type { Context as RsbuildContext, RsbuildMode, RsbuildEntry, RsbuildTarget, RsbuildInstance, CreateRsbuildOptions, InspectConfigOptions, OnExitFn, OnAfterBuildFn, OnAfterCreateCompilerFn, OnAfterStartDevServerFn, OnAfterStartProdServerFn, OnBeforeBuildFn, OnBeforeStartDevServerFn, OnBeforeStartProdServerFn, OnBeforeCreateCompilerFn, OnDevCompileDoneFn, ModifyRsbuildConfigFn } from '@rsbuild/shared';
|
package/dist/plugins/html.js
CHANGED
|
@@ -155,7 +155,7 @@ const applyInjectTags = (api) => {
|
|
|
155
155
|
if (!tags.length && !shouldByEntries) {
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
const { HtmlTagsPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
158
|
+
const { HtmlTagsPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlTagsPlugin")));
|
|
159
159
|
const sharedOptions = {
|
|
160
160
|
HtmlPlugin,
|
|
161
161
|
append: true,
|
|
@@ -246,19 +246,19 @@ const pluginHtml = () => ({
|
|
|
246
246
|
chain.plugin(`${CHAIN_ID.PLUGIN.HTML}-${entryName}`).use(HtmlPlugin, [finalOptions]);
|
|
247
247
|
})
|
|
248
248
|
);
|
|
249
|
-
const { HtmlBasicPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
249
|
+
const { HtmlBasicPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlBasicPlugin")));
|
|
250
250
|
chain.plugin(CHAIN_ID.PLUGIN.HTML_BASIC).use(HtmlBasicPlugin, [{ HtmlPlugin, info: htmlInfoMap }]);
|
|
251
251
|
if (config.security) {
|
|
252
252
|
const { nonce } = config.security;
|
|
253
253
|
if (nonce) {
|
|
254
|
-
const { HtmlNoncePlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
254
|
+
const { HtmlNoncePlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlNoncePlugin")));
|
|
255
255
|
chain.plugin(CHAIN_ID.PLUGIN.HTML_NONCE).use(HtmlNoncePlugin, [{ nonce, HtmlPlugin }]);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
if (config.html) {
|
|
259
259
|
const { appIcon, crossorigin } = config.html;
|
|
260
260
|
if (crossorigin) {
|
|
261
|
-
const { HtmlCrossOriginPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
261
|
+
const { HtmlCrossOriginPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlCrossOriginPlugin")));
|
|
262
262
|
const formattedCrossorigin = crossorigin === true ? "anonymous" : crossorigin;
|
|
263
263
|
chain.plugin(CHAIN_ID.PLUGIN.HTML_CROSS_ORIGIN).use(HtmlCrossOriginPlugin, [
|
|
264
264
|
{ crossOrigin: formattedCrossorigin, HtmlPlugin }
|
|
@@ -266,7 +266,7 @@ const pluginHtml = () => ({
|
|
|
266
266
|
chain.output.crossOriginLoading(formattedCrossorigin);
|
|
267
267
|
}
|
|
268
268
|
if (appIcon) {
|
|
269
|
-
const { HtmlAppIconPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
269
|
+
const { HtmlAppIconPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlAppIconPlugin")));
|
|
270
270
|
const distDir = (0, import_shared.getDistPath)(config.output, "image");
|
|
271
271
|
const iconPath = import_path.default.isAbsolute(appIcon) ? appIcon : import_path.default.join(api.context.rootPath, appIcon);
|
|
272
272
|
chain.plugin(CHAIN_ID.PLUGIN.APP_ICON).use(HtmlAppIconPlugin, [{ iconPath, distDir, HtmlPlugin }]);
|
|
@@ -41,7 +41,7 @@ const pluginInlineChunk = () => ({
|
|
|
41
41
|
if ((0, import_shared.isHtmlDisabled)(config, target) || !isProd) {
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
|
-
const { InlineChunkHtmlPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
44
|
+
const { InlineChunkHtmlPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/InlineChunkHtmlPlugin")));
|
|
45
45
|
const { inlineStyles, inlineScripts } = config.output;
|
|
46
46
|
const scriptTests = [];
|
|
47
47
|
const styleTests = [];
|
|
@@ -43,7 +43,7 @@ const pluginNetworkPerformance = () => ({
|
|
|
43
43
|
if (isServer || isWebWorker || isServiceWorker) {
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
|
-
const { HtmlNetworkPerformancePlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
46
|
+
const { HtmlNetworkPerformancePlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlNetworkPerformancePlugin")));
|
|
47
47
|
if (dnsPrefetch) {
|
|
48
48
|
chain.plugin(CHAIN_ID.PLUGIN.HTML_DNS_PREFETCH).use(HtmlNetworkPerformancePlugin, [
|
|
49
49
|
dnsPrefetch,
|
|
@@ -44,7 +44,7 @@ const pluginPreloadOrPrefetch = () => ({
|
|
|
44
44
|
return;
|
|
45
45
|
}
|
|
46
46
|
const HTMLCount = chain.entryPoints.values().length;
|
|
47
|
-
const { HTMLPreloadOrPrefetchPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack
|
|
47
|
+
const { HTMLPreloadOrPrefetchPlugin } = await Promise.resolve().then(() => __toESM(require("../rspack/HtmlPreloadOrPrefetchPlugin")));
|
|
48
48
|
if (prefetch) {
|
|
49
49
|
chain.plugin(CHAIN_ID.PLUGIN.HTML_PREFETCH).use(HTMLPreloadOrPrefetchPlugin, [
|
|
50
50
|
prefetch,
|
|
@@ -68,7 +68,7 @@ function createContextByConfig(options, bundlerType, sourceConfig = {}, outputCo
|
|
|
68
68
|
entry: sourceConfig.entry || // TODO: remove sourceConfig.entries in v0.2.0
|
|
69
69
|
// compat with previous config
|
|
70
70
|
sourceConfig.entries || getDefaultEntry(rootPath),
|
|
71
|
-
version: "0.1.
|
|
71
|
+
version: "0.1.8",
|
|
72
72
|
target,
|
|
73
73
|
rootPath,
|
|
74
74
|
distPath,
|
|
@@ -2,6 +2,10 @@ export { getRspackVersion } from './shared';
|
|
|
2
2
|
export { rspackProvider } from './provider';
|
|
3
3
|
export type { Rspack, RspackConfig } from '@rsbuild/shared';
|
|
4
4
|
export { createPublicContext, createContextByConfig } from './core/createContext';
|
|
5
|
+
export { initPlugins } from '@rsbuild/shared';
|
|
5
6
|
export { initHooks, type Hooks } from './core/initHooks';
|
|
6
7
|
export { withDefaultConfig } from './config';
|
|
7
|
-
export { initRsbuildConfig } from './core/initConfigs';
|
|
8
|
+
export { initRsbuildConfig } from './core/initConfigs';
|
|
9
|
+
export { getPluginAPI } from './core/initPlugins';
|
|
10
|
+
export { applyBaseCSSRule, applyCSSModuleRule } from './plugins/css';
|
|
11
|
+
export type { Context } from '../types';
|
|
@@ -16,29 +16,40 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var provider_exports = {};
|
|
20
|
+
__export(provider_exports, {
|
|
21
|
+
applyBaseCSSRule: () => import_css.applyBaseCSSRule,
|
|
22
|
+
applyCSSModuleRule: () => import_css.applyCSSModuleRule,
|
|
21
23
|
createContextByConfig: () => import_createContext.createContextByConfig,
|
|
22
24
|
createPublicContext: () => import_createContext.createPublicContext,
|
|
25
|
+
getPluginAPI: () => import_initPlugins.getPluginAPI,
|
|
23
26
|
getRspackVersion: () => import_shared.getRspackVersion,
|
|
24
27
|
initHooks: () => import_initHooks.initHooks,
|
|
28
|
+
initPlugins: () => import_shared2.initPlugins,
|
|
25
29
|
initRsbuildConfig: () => import_initConfigs.initRsbuildConfig,
|
|
26
30
|
rspackProvider: () => import_provider.rspackProvider,
|
|
27
31
|
withDefaultConfig: () => import_config.withDefaultConfig
|
|
28
32
|
});
|
|
29
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(provider_exports);
|
|
30
34
|
var import_shared = require("./shared");
|
|
31
35
|
var import_provider = require("./provider");
|
|
32
36
|
var import_createContext = require("./core/createContext");
|
|
37
|
+
var import_shared2 = require("@rsbuild/shared");
|
|
33
38
|
var import_initHooks = require("./core/initHooks");
|
|
34
39
|
var import_config = require("./config");
|
|
35
40
|
var import_initConfigs = require("./core/initConfigs");
|
|
41
|
+
var import_initPlugins = require("./core/initPlugins");
|
|
42
|
+
var import_css = require("./plugins/css");
|
|
36
43
|
// Annotate the CommonJS export names for ESM import in node:
|
|
37
44
|
0 && (module.exports = {
|
|
45
|
+
applyBaseCSSRule,
|
|
46
|
+
applyCSSModuleRule,
|
|
38
47
|
createContextByConfig,
|
|
39
48
|
createPublicContext,
|
|
49
|
+
getPluginAPI,
|
|
40
50
|
getRspackVersion,
|
|
41
51
|
initHooks,
|
|
52
|
+
initPlugins,
|
|
42
53
|
initRsbuildConfig,
|
|
43
54
|
rspackProvider,
|
|
44
55
|
withDefaultConfig
|
|
@@ -158,7 +158,7 @@ const pluginCss = () => {
|
|
|
158
158
|
const enableSourceMap = (0, import_shared.isUseCssSourceMap)(config);
|
|
159
159
|
const enableExtractCSS = (0, import_shared.isUseCssExtract)(config, utils.target);
|
|
160
160
|
if (!enableSourceMap && enableExtractCSS) {
|
|
161
|
-
const { RemoveCssSourcemapPlugin } = await Promise.resolve().then(() => __toESM(require("../../rspack
|
|
161
|
+
const { RemoveCssSourcemapPlugin } = await Promise.resolve().then(() => __toESM(require("../../rspack/RemoveCssSourcemapPlugin")));
|
|
162
162
|
chain.plugin("remove-css-sourcemap").use(RemoveCssSourcemapPlugin, [utils.HtmlPlugin]);
|
|
163
163
|
}
|
|
164
164
|
});
|
package/dist/server/devServer.js
CHANGED
|
@@ -190,7 +190,8 @@ async function startDevServer(options, createDevMiddleware, {
|
|
|
190
190
|
let urls = (0, import_shared.getAddressUrls)(protocol, port, host);
|
|
191
191
|
const routes = (0, import_shared.formatRoutes)(
|
|
192
192
|
options.context.entry,
|
|
193
|
-
rsbuildConfig.output?.distPath?.html
|
|
193
|
+
rsbuildConfig.output?.distPath?.html,
|
|
194
|
+
rsbuildConfig.html?.outputStructure
|
|
194
195
|
);
|
|
195
196
|
(0, import_shared.debug)("create dev server");
|
|
196
197
|
const { devMiddleware, compiler } = await createDevMiddleware(
|
|
@@ -162,7 +162,8 @@ async function startProdServer(context, rsbuildConfig, { printURLs = true, getPo
|
|
|
162
162
|
async () => {
|
|
163
163
|
const routes = (0, import_shared.formatRoutes)(
|
|
164
164
|
context.entry,
|
|
165
|
-
rsbuildConfig.output?.distPath?.html
|
|
165
|
+
rsbuildConfig.output?.distPath?.html,
|
|
166
|
+
rsbuildConfig.html?.outputStructure
|
|
166
167
|
);
|
|
167
168
|
await context.hooks.onAfterStartProdServerHook.call({
|
|
168
169
|
port,
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Context as BaseContext, RsbuildConfig, RsbuildPlugin, NormalizedConfig, RsbuildPluginAPI } from '@rsbuild/shared';
|
|
2
|
-
import type { Hooks } from './
|
|
2
|
+
import type { Hooks } from './provider/core/initHooks';
|
|
3
3
|
export type { RsbuildPlugin, RsbuildPluginAPI };
|
|
4
4
|
/** The inner context. */
|
|
5
5
|
export type Context = BaseContext & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsbuild/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Unleash the power of Rspack with the out-of-the-box build tool.",
|
|
5
5
|
"homepage": "https://rsbuild.dev",
|
|
6
6
|
"bugs": {
|
|
@@ -33,17 +33,14 @@
|
|
|
33
33
|
"types": "./dist/plugins/*.d.ts",
|
|
34
34
|
"default": "./dist/plugins/*.js"
|
|
35
35
|
},
|
|
36
|
-
"./
|
|
37
|
-
"types": "./dist/
|
|
38
|
-
"default": "./dist/
|
|
39
|
-
},
|
|
40
|
-
"./rspack-provider": {
|
|
41
|
-
"types": "./dist/rspack-provider/index.d.ts",
|
|
42
|
-
"default": "./dist/rspack-provider/index.js"
|
|
36
|
+
"./provider": {
|
|
37
|
+
"types": "./dist/provider/index.d.ts",
|
|
38
|
+
"default": "./dist/provider/index.js"
|
|
43
39
|
},
|
|
44
40
|
"./types": {
|
|
45
41
|
"types": "./types.d.ts"
|
|
46
|
-
}
|
|
42
|
+
},
|
|
43
|
+
"./package.json": "./package.json"
|
|
47
44
|
},
|
|
48
45
|
"main": "./dist/index.js",
|
|
49
46
|
"types": "./dist/index.d.ts",
|
|
@@ -62,7 +59,7 @@
|
|
|
62
59
|
"core-js": "~3.32.2",
|
|
63
60
|
"html-webpack-plugin": "npm:html-rspack-plugin@5.5.7",
|
|
64
61
|
"postcss": "8.4.31",
|
|
65
|
-
"@rsbuild/shared": "0.1.
|
|
62
|
+
"@rsbuild/shared": "0.1.8"
|
|
66
63
|
},
|
|
67
64
|
"devDependencies": {
|
|
68
65
|
"@types/node": "^16",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.d.ts
RENAMED
|
File without changes
|
/package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/determineAsValue.js
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/doesChunkBelongToHtml.js
RENAMED
|
File without changes
|
/package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.d.ts
RENAMED
|
File without changes
|
/package/dist/{rspack-plugins → rspack}/HtmlPreloadOrPrefetchPlugin/helpers/extractChunks.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|