Skip to content

fix: add annotations for tree shaking #610

fix: add annotations for tree shaking

fix: add annotations for tree shaking #610

Workflow file for this run

name: Bundle-size
on:
pull_request:
branches:
- main
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
size:
name: 'Bundle Size'
if: github.repository == 'pmndrs/react-spring'
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: 'yarn'
- name: Install
run: yarn install --immutable
- name: Build packages
run: yarn build --filter=!@react-spring/doc
- uses: preactjs/compressed-size-action@v2
with:
pattern: '{**/dist/**/*.{mjs,js},packages/types/*.{js,d.ts}}'