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 CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Changed ECMAScript target version, by [@compulim](https://github.com/compulim), in PR [#108](https://github.com/compulim/react-chain-of-responsibility/pull/108)
- CommonJS will target ES2019, changed from ESNext, will support Webpack 4
- ES Modules will continue to target ESNext

## [0.4.0] - 2025-10-22

### Added
Expand Down
27 changes: 18 additions & 9 deletions packages/react-chain-of-responsibility/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,24 @@
import { defineConfig } from 'tsup';
import { defineConfig, type Options } from 'tsup';

const BASE_CONFIG: Options = {
dts: true,
entry: {
'react-chain-of-responsibility': './src/index.ts',
'react-chain-of-responsibility.fluentUI': './src/index.fluentUI.ts',
'react-chain-of-responsibility.preview': './src/index.preview.ts'
},
sourcemap: true
};

export default defineConfig([
{
dts: true,
entry: {
'react-chain-of-responsibility': './src/index.ts',
'react-chain-of-responsibility.fluentUI': './src/index.fluentUI.ts',
'react-chain-of-responsibility.preview': './src/index.preview.ts'
},
format: ['cjs', 'esm'],
sourcemap: true,
...BASE_CONFIG,
format: ['esm'],
target: 'esnext'
},
{
...BASE_CONFIG,
format: ['cjs'],
target: 'es2019'
}
]);