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(sandbox): support for filtering scripts #671

Merged
merged 1 commit into from
May 22, 2024

Conversation

zhoushaw
Copy link
Member

@zhoushaw zhoushaw commented May 22, 2024

Description

  • feat(sandbox): support for filtering scripts
Garfish.run({
 apps: [
    {
      name: 'react16',
      activeWhen: '/react16',
      entry: getProxyHost('dev/react16'),
      sandbox: {
+        excludeAssetFilter: (url: string) => {
+         return url.includes('exclude');
+       },
      },
    },
 ]
})

Related Issue

image

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation.

Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
garfish ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 8:52am

@nyqykk nyqykk added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit 3330f11 May 22, 2024
6 checks passed
@nyqykk nyqykk deleted the feat/sandbox-add-excludeAssetFilter-config branch May 22, 2024 08:57
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