Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/node-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ on:
- packages/**/package.json
- package.json
- package-lock.json
push:
branches:
- main
paths:
- packages/**/src/**/*.js
- packages/**/package.json
- package.json
- package-lock.json

jobs:
lint:
Expand Down
18 changes: 14 additions & 4 deletions .github/workflows/php-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ on:
- phpstan.neon
- composer.json
- composer.lock
push:
branches:
- main
paths:
- packages/php/**/*.php
- phpcs.xml
- phpunit.xml
- phpstan.neon
- composer.json
- composer.lock

jobs:
phpcs:
Expand All @@ -29,7 +39,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache composer dependencies
uses: actions/cache@v4
Expand Down Expand Up @@ -62,7 +72,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache composer dependencies
uses: actions/cache@v4
Expand Down Expand Up @@ -103,7 +113,7 @@ jobs:

- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"

- name: Cache composer dependencies
uses: actions/cache@v4
Expand All @@ -116,8 +126,8 @@ jobs:
run: composer install --no-progress --prefer-dist --optimize-autoloader --ignore-platform-reqs

- name: Install Pest v3
if: ${{ matrix.php-versions == '8.4' }}
run: composer require pest/pest:^3.0
if: ${{ matrix.php-version == '8.4' }}

- name: Pest
run: php -v && XDEBUG_MODE=coverage ./vendor/bin/pest --coverage --coverage-clover='coverage.xml'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
npm publish --tag $TAG \
--workspace @studiometa/webpack-config \
--workspace @studiometa/webpack-config-preset-markdown \
--workspace @studiometa/webpack-config-preset-polyfills \
--workspace @studiometa/webpack-config-preset-prototyping \
--workspace @studiometa/webpack-config-preset-tailwindcss-4 \
--workspace @studiometa/webpack-config-preset-vue-2 \
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Added

- **@studiometa/webpack-config-preset-polyfills:** add a preset package to inject `core-js` polyfills with `@babel/preset-env` while keeping `esbuild-loader` in the pipeline ([#208](https://github.com/studiometa/webpack-config/pull/208), [007dae1](https://github.com/studiometa/webpack-config/commit/007dae1))

## [v6.3.6](https://github.com/studiometa/webpack-config/compare/6.3.5..6.3.6) (2025-06-05)

### Fixed
Expand Down
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,25 @@ export default defineConfig({
});
```

### `polyfills`

Add runtime polyfills based on actual usage while keeping `esbuild-loader` in the pipeline. This preset is available as a separate package:

```sh
npm install --save-dev @studiometa/webpack-config-preset-polyfills
```

#### Example

```js
import { defineConfig } from '@studiometa/webpack-config';
import { polyfills } from '@studiometa/webpack-config-preset-polyfills';

export default defineConfig({
presets: [polyfills()],
});
```

### `hash`

Add content hash to filenames in production.
Expand Down Expand Up @@ -474,4 +493,4 @@ export default defineConfig({

## Contributing

This project's branches are managed with [Git Flow](https://github.com/petervanderdoes/gitflow-avh), every feature branch must be merged into develop via a pull request.
This project uses a trunk-based workflow with `main` as the default branch. Open a pull request targeting `main` for feature, fix, and maintenance branches.
Loading
Loading