-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(plugin-webpack-swc): swcMinimizerPlugin sourceMap config #3550
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@@ -9,6 +9,7 @@ import color from 'picocolors'; | |||
import { minify, minifyCss } from './binding'; | |||
import { JS_REGEX } from './constants'; | |||
import type { CssMinifyOptions, JsMinifyOptions, Output } from './types'; | |||
import { isUndefined } from 'lodash'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to avoid using lodash
, how about foo === undefined
?
@@ -35,15 +36,19 @@ export class SwcMinimizerPlugin { | |||
|
|||
private name = 'swc-minimizer-plugin'; | |||
|
|||
private rsbuildConfigSourceMap: NormalizedEnvironmentConfig['output']['sourceMap']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rsbuildConfigSourceMap -> rsbuildSourceMapConfig
8277331
to
9aa70ee
Compare
…t to the swcMinimizerPlugin fix(plugin-webpack-swc): the rsbuildConfig's sourcemap should transmit to the swcMinimizerPlugin fix(plugin-webpack-swc): the rsbuildConfig's sourcemap should transmit to the swcMinimizerPlugin
9aa70ee
to
37cb521
Compare
Summary
fix(plugin-webpack-swc): the rsbuildConfig's sourcemap should transmit to the swcMinimizerPlugin
Related Links
Checklist