Skip to content
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

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

easy1090
Copy link
Contributor

@easy1090 easy1090 commented Sep 25, 2024

Summary

fix(plugin-webpack-swc): the rsbuildConfig's sourcemap should transmit to the swcMinimizerPlugin

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Sep 25, 2024

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 37cb521
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/66f38e81a5ec0c0008aba32c
😎 Deploy Preview https://deploy-preview-3550--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🟢 up 1 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@easy1090 easy1090 requested review from chenjiahan and removed request for chenjiahan September 25, 2024 03:45
@@ -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';
Copy link
Member

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'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rsbuildConfigSourceMap -> rsbuildSourceMapConfig

@easy1090 easy1090 force-pushed the fix/swc-plugin-sourcemap-config branch 2 times, most recently from 8277331 to 9aa70ee Compare September 25, 2024 04:15
…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
@easy1090 easy1090 force-pushed the fix/swc-plugin-sourcemap-config branch from 9aa70ee to 37cb521 Compare September 25, 2024 04:15
@chenjiahan chenjiahan enabled auto-merge (squash) September 25, 2024 04:17
@easy1090 easy1090 disabled auto-merge September 25, 2024 04:21
@easy1090 easy1090 enabled auto-merge (squash) September 25, 2024 04:21
@easy1090 easy1090 merged commit 07076bc into main Sep 25, 2024
9 checks passed
@easy1090 easy1090 deleted the fix/swc-plugin-sourcemap-config branch September 25, 2024 04:24
@chenjiahan chenjiahan mentioned this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants