Skip to content

Commit 91a0edd

Browse files
authored
Revert "chore: prepare for v1.2.0 release (#4207)" (#4234)
1 parent 91d1750 commit 91a0edd

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

packages/core/rslib.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ export default defineConfig({
138138
0 && (module.exports = {
139139
PLUGIN_CSS_NAME,
140140
PLUGIN_SWC_NAME,
141+
__internalHelper,
141142
createRsbuild,
142143
defineConfig,
143144
ensureAssetPrefix,

packages/core/src/index.ts

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
import { rspack } from '@rspack/core';
66
import type * as Rspack from '@rspack/core';
7+
import * as __internalHelper from './internal';
78

89
// Core methods
910
export { loadEnv } from './loadEnv';
@@ -163,3 +164,11 @@ export type {
163164
WatchFiles,
164165
} from './types';
165166
export type { ChainIdentifier } from './configChain';
167+
168+
export {
169+
/**
170+
* @private
171+
* TODO: remove this in Rspack v1.2.0
172+
*/
173+
__internalHelper,
174+
};

packages/core/src/rspack/RsbuildHtmlPlugin.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,8 @@ export class RsbuildHtmlPlugin {
310310

311311
compiler.hooks.compilation.tap(this.name, (compilation: Compilation) => {
312312
getHTMLPlugin()
313-
.getCompilationHooks(compilation)
313+
// TODO: use getCompilationHooks in minor release
314+
.getHooks(compilation)
314315
.alterAssetTagGroups.tapPromise(this.name, async (data) => {
315316
const entryName = data.plugin.options?.entryName;
316317

0 commit comments

Comments
 (0)