Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions packages/core/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ export async function createConstantRsbuildConfig(): Promise<EnvironmentConfig>
},
output: {
target: 'node',
filenameHash: false,
distPath: {
js: './',
jsAsync: './',
Expand Down Expand Up @@ -649,6 +648,9 @@ const composeFormatConfig = ({
switch (format) {
case 'esm':
return {
output: {
filenameHash: false,
},
tools: {
rspack: {
module: {
Expand Down Expand Up @@ -693,6 +695,9 @@ const composeFormatConfig = ({
};
case 'cjs':
return {
output: {
filenameHash: false,
},
tools: {
rspack: {
module: {
Expand Down Expand Up @@ -731,6 +736,9 @@ const composeFormatConfig = ({
}

const config: EnvironmentConfig = {
output: {
filenameHash: false,
},
tools: {
rspack: {
module: {
Expand Down Expand Up @@ -774,6 +782,7 @@ const composeFormatConfig = ({

const config: EnvironmentConfig = {
output: {
filenameHash: false,
minify: {
jsOptions: {
minimizerOptions: {
Expand Down Expand Up @@ -1133,7 +1142,8 @@ const composeOutputFilenameConfig = (
});

return {
config: finalConfig,
// Do not modify MF's output hash configuration.
config: format === 'mf' ? {} : finalConfig,
jsExtension: finalJsExtension,
dtsExtension,
};
Expand Down Expand Up @@ -1781,6 +1791,7 @@ async function composeLibRsbuildConfig(
multiCompilerIndex,
pkgJson,
);

const { entryConfig, outBase } = await composeEntryConfig(
config.source?.entry!,
config.bundle,
Expand Down
Loading
Loading