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
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function getCommonConfig(
output: {
uniqueName: normalizedOptions.projectName ?? 'rspack-angular',
publicPath: normalizedOptions.deployUrl ?? '',
clean: normalizedOptions.deleteOutputPath,
clean: false, // already taken care for by AngularRspackPlugin
crossOriginLoading,
trustedTypes: { policyName: 'angular#bundler' },
sourceMapFilename: normalizedOptions.sourceMap.scripts
Expand Down
2 changes: 1 addition & 1 deletion packages/angular-rspack/src/lib/config/create-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export async function _createConfig(
);
const hashFormat = getOutputHashFormat(normalizedOptions.outputHashing);

if (options.deleteOutputPath) {
if (normalizedOptions.deleteOutputPath) {
await deleteOutputDir(
normalizedOptions.root,
normalizedOptions.outputPath.base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe('createConfig', () => {
scripts: [],
aot: true,
skipTypeChecking: false,
deleteOutputPath: false,
};

beforeEach(() => {
Expand Down