Skip to content

Commit

Permalink
Revert "chore: prepare for v1.2.0 release (#4207)"
Browse files Browse the repository at this point in the history
This reverts commit ca53135.
  • Loading branch information
chenjiahan committed Dec 21, 2024
1 parent 91d1750 commit 0153f6e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/core/rslib.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export default defineConfig({
0 && (module.exports = {
PLUGIN_CSS_NAME,
PLUGIN_SWC_NAME,
__internalHelper,
createRsbuild,
defineConfig,
ensureAssetPrefix,
Expand Down
9 changes: 9 additions & 0 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
import { rspack } from '@rspack/core';
import type * as Rspack from '@rspack/core';
import * as __internalHelper from './internal';

// Core methods
export { loadEnv } from './loadEnv';
Expand Down Expand Up @@ -163,3 +164,11 @@ export type {
WatchFiles,
} from './types';
export type { ChainIdentifier } from './configChain';

export {
/**
* @private
* TODO: remove this in Rspack v1.2.0
*/
__internalHelper,
};
3 changes: 2 additions & 1 deletion packages/core/src/rspack/RsbuildHtmlPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ export class RsbuildHtmlPlugin {

compiler.hooks.compilation.tap(this.name, (compilation: Compilation) => {
getHTMLPlugin()
.getCompilationHooks(compilation)
// TODO: use getCompilationHooks in minor release
.getHooks(compilation)
.alterAssetTagGroups.tapPromise(this.name, async (data) => {
const entryName = data.plugin.options?.entryName;

Expand Down

0 comments on commit 0153f6e

Please sign in to comment.