Skip to content

feat: support rslint-wasm#304

Merged
hardfist merged 11 commits intomainfrom
yj/support-run-browser
Aug 27, 2025
Merged

feat: support rslint-wasm#304
hardfist merged 11 commits intomainfrom
yj/support-run-browser

Conversation

@hardfist
Copy link
Copy Markdown
Contributor

@hardfist hardfist commented Aug 26, 2025

support run rslint on browser
support expose tsgo ast in following pr

Copilot AI review requested due to automatic review settings August 26, 2025 20:36
@netlify
Copy link
Copy Markdown

netlify bot commented Aug 26, 2025

Deploy Preview for rslint ready!

Name Link
🔨 Latest commit dc71891
🔍 Latest deploy log https://app.netlify.com/projects/rslint/deploys/68aeae98e21b9b00083b016a
😎 Deploy Preview https://deploy-preview-304--rslint.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 project configuration.

Copy link
Copy Markdown
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 adds support for running rslint in browser environments through WebAssembly (WASM), extending the existing Node.js-only architecture to support both Node.js and browser environments.

Key changes include:

  • Refactored the core rslint service to support multiple environments through a common interface
  • Added browser-specific implementation using web workers and WASM
  • Created a new @rslint/wasm package for browser usage

Reviewed Changes

Copilot reviewed 22 out of 23 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
packages/rslint/src/types.ts Added shared type definitions for the rslint IPC protocol
packages/rslint/src/service.ts Refactored to use environment-specific service implementations
packages/rslint/src/node.ts Extracted Node.js-specific implementation from main service
packages/rslint/src/browser.ts Added browser implementation using web workers
packages/rslint/src/index.ts Updated exports and convenience functions to use new architecture
packages/rslint-wasm/* New package containing WASM build scripts, worker implementation, and browser example
internal/config/loader.go Added debug logging for configuration loading
internal/api/api.go Minor formatting change removing blank line
cmd/rslint/signal_*.go Added platform-specific signal handling for WASM support
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@hardfist hardfist force-pushed the yj/support-run-browser branch from 3ea0aed to 2191146 Compare August 26, 2025 21:48
@hardfist hardfist force-pushed the yj/support-run-browser branch from d7cdbc4 to 9d93857 Compare August 27, 2025 03:46
@hardfist hardfist force-pushed the yj/support-run-browser branch from 8fde029 to e763a0a Compare August 27, 2025 05:37
@hardfist hardfist enabled auto-merge (squash) August 27, 2025 07:14
@hardfist hardfist merged commit 0b61561 into main Aug 27, 2025
12 checks passed
@hardfist hardfist deleted the yj/support-run-browser branch August 27, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants