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

feat(plugin-svelte): support pass preprocess options #1185

Merged
merged 1 commit into from
Jan 5, 2024

Conversation

tmkx
Copy link
Contributor

@tmkx tmkx commented Jan 5, 2024

Summary

  1. support pass preprocess options
  2. add frequently used loader typings

Related Links

Checklist

  • Tests updated.
  • Documentation updated.

Copy link

netlify bot commented Jan 5, 2024

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit eb07d3b
🔍 Latest deploy log https://app.netlify.com/sites/rsbuild/deploys/6597d2df5033b30008104b05
😎 Deploy Preview https://deploy-preview-1185--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

*
* See https://github.com/sveltejs/svelte-preprocess
*/
preprocessOptions?: AutoPreprocessOptions;
Copy link
Member

Choose a reason for hiding this comment

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

Thanks! Can you add an unit test for this new option?

see: packages/plugin-svelte/tests/index.test.ts

Copy link
Contributor Author

@tmkx tmkx Jan 5, 2024

Choose a reason for hiding this comment

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

done :)

but the snapshot was not serialized as expected

Copy link
Member

Choose a reason for hiding this comment

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

haha, maybe we can improve the snapshot in the future

@tmkx tmkx force-pushed the feat/svelte-preprocess-options branch from 3bb913b to eb07d3b Compare January 5, 2024 09:58
@tmkx tmkx requested a review from chenjiahan January 5, 2024 10:45
@chenjiahan chenjiahan merged commit f2a1c17 into web-infra-dev:main Jan 5, 2024
11 checks passed
@chenjiahan
Copy link
Member

Thanks! ❤️

Can you submit another PR to update the document?

@tmkx tmkx deleted the feat/svelte-preprocess-options branch January 5, 2024 12:39
@chenjiahan chenjiahan mentioned this pull request Jan 7, 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