Skip to content

Commit

Permalink
fix(rspack): support string for sourcemap to enable inline-source-map
Browse files Browse the repository at this point in the history
  • Loading branch information
Coly010 committed Nov 6, 2024
1 parent 0ed0238 commit fbf5e31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/rspack/src/executors/rspack/schema.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface RspackExecutorSchema {

rspackConfig: string;
optimization?: boolean | OptimizationOptions;
sourceMap?: boolean | 'hidden';
sourceMap?: boolean | string;
assets?: any[];
extractLicenses?: boolean;
fileReplacements?: FileReplacement[];
Expand Down
2 changes: 1 addition & 1 deletion packages/rspack/src/plugins/utils/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export interface NxAppRspackPluginOptions {
/**
* Generate source maps.
*/
sourceMap?: boolean | 'hidden';
sourceMap?: boolean | string;
/**
* When `true`, `process.env.NODE_ENV` will be excluded from the bundle. Useful for building a web application to run in a Node environment.
*/
Expand Down

0 comments on commit fbf5e31

Please sign in to comment.