Skip to content

Fix ESM imports and tree-shaking #88

Fix ESM imports and tree-shaking

Fix ESM imports and tree-shaking #88

Workflow file for this run

name: Build pull request
concurrency:
group: pr-on-${{ github.event_name }}-from-${{ github.ref_name }}
cancel-in-progress: true
on:
pull_request:
branches:
- "master"
jobs:
lint-pull-request:
name: Lint
uses: ./.github/workflows/lint.yml
build-and-test-pull-request:
name: Test
needs: lint-pull-request
uses: ./.github/workflows/test.yml
strategy:
fail-fast: false
matrix:
node: [16.x, 18.x, 20.x]
target: [es5, es2015, esnext]
module: [cjs, esm, umd]
include:
- {node: 16.x, target: ix}
- {node: 18.x, target: ix}
- {node: 20.x, target: ix}
- {node: 20.x, target: src, args: --coverage}
with:
args: ${{ matrix.args }}
node: ${{ matrix.node }}
target: ${{ matrix.target }}
module: ${{ matrix.module }}
test-tree-shaking-pull-request:
needs: build-and-test-pull-request
name: Bundle
uses: ./.github/workflows/bundle.yml
strategy:
fail-fast: false
matrix:
bundler: [esbuild, rollup, webpack]
target: [es5, es2015, esnext]
module: [cjs, esm, umd]
include:
- {bundler: esbuild, target: ix}
- {bundler: rollup, target: ix}
- {bundler: webpack, target: ix}
with:
bundler: ${{ matrix.bundler }}
target: ${{ matrix.target }}
module: ${{ matrix.module }}