danielroe / danielroe/rollup-plugin-pure

Support auto adding of pure for known patterns.

Open
#345 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
88
Forks
6
Avg merge
1d 19h
Merged PRs (30d)
7

Description

### 🆒 Your use case

There are common patterns of `Symbol()` / `Symbol.for()`/ `new Proxy()` that could be auto annotated with this plugin (otherwise won't be tree-shaken, it is so common in some libs)

### 🆕 The solution you'd like

Other than `functions: {}` allow a flag or do it by default

### 🔍 Alternatives you've considered

_No response_

### ℹ️ Additional info

_No response_

Contributor guide

Open the contributing guide

Research direction

Review the plugin's existing functions configuration and pure-annotation behavior, then determine how the requested Symbol(), Symbol.for(), and new Proxy() patterns should be recognized or configured. Done means the supported patterns are documented, annotated correctly for Rollup tree-shaking, and covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.