Skip to content

feat(core): reexport "@rslib/core/types" from "@rsbuild/core/types"#739

Merged
Timeless0911 merged 2 commits intomainfrom
feat/export-types-for-css-asset
Feb 7, 2025
Merged

feat(core): reexport "@rslib/core/types" from "@rsbuild/core/types"#739
Timeless0911 merged 2 commits intomainfrom
feat/export-types-for-css-asset

Conversation

@SoonIter
Copy link
Copy Markdown
Member

@SoonIter SoonIter commented Feb 7, 2025

Summary

for src/env.d.ts

// src/env.d.ts
declare module '*.module.scss' {
  const classes: { [key: string]: string };
  export default classes;
}

declare module '*.svg' {
  const url: string;
  export default url;
}
/// <reference types="@rslib/core/types" />

https://rsbuild.dev/zh/guide/basic/static-assets#%E7%B1%BB%E5%9E%8B%E5%A3%B0%E6%98%8E

@netlify
Copy link
Copy Markdown

netlify bot commented Feb 7, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 79fb64b
🔍 Latest deploy log https://app.netlify.com/sites/rslib/deploys/67a5c45b1dfa2e0008588f93
😎 Deploy Preview https://deploy-preview-739--rslib.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.

@SoonIter SoonIter requested review from Timeless0911 and fi3ework and removed request for Timeless0911 February 7, 2025 08:31
@Timeless0911 Timeless0911 merged commit 5dafcdc into main Feb 7, 2025
17 checks passed
@Timeless0911 Timeless0911 deleted the feat/export-types-for-css-asset branch February 7, 2025 08:50
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.

3 participants