Skip to content

Conversation

@GRAMMAC1
Copy link
Contributor

Summary

add less alias import solution to fix #5372

Copilot AI review requested due to automatic review settings June 23, 2025 08:52
@netlify
Copy link

netlify bot commented Jun 23, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit fbbac4b
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/685923a95a69940008693ccd
😎 Deploy Preview https://deploy-preview-5471--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: 55 (🔴 down 30 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (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 project configuration.

@CLAassistant
Copy link

CLAassistant commented Jun 23, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the Svelte plugin documentation by adding a solution for handling alias imports for LESS/SCSS files, addressing issue #5372.

  • Added a new section on alias handling for both Chinese and English documentation.
  • Provided an example configuration snippet for alias resolution using pluginSvelte.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
website/docs/zh/plugins/list/plugin-svelte.mdx Added Chinese documentation for alias handling in LESS/SCSS with example configuration
website/docs/en/plugins/list/plugin-svelte.mdx Added English documentation for alias handling in LESS/SCSS with example configuration
Comments suppressed due to low confidence (1)

website/docs/zh/plugins/list/plugin-svelte.mdx:144

  • The documentation refers to 'preprocessor', but the code snippet uses 'preprocessOptions'. Please update the Chinese docs for consistency with the actual configuration option.
通过配置 `preprocessor` 可以保证在 Svelte 组件中引入的 `@import '@/styles/variables.scss` 或者 `@import '@/styles/variables.less'` 能够正确解析。

chenjiahan
chenjiahan previously approved these changes Jun 23, 2025
Copy link
Member

@chenjiahan chenjiahan left a comment

Choose a reason for hiding this comment

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

Let's merge this PR first 😄

@chenjiahan chenjiahan enabled auto-merge (squash) June 23, 2025 09:51
@chenjiahan chenjiahan merged commit 3362ec3 into web-infra-dev:main Jun 23, 2025
11 checks passed
@chenjiahan chenjiahan mentioned this pull request Jun 26, 2025
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.

[Bug]: The style block of type less in the svelte template cannot reference the less file with path alias

3 participants