Skip to content

Commit 6288fa0

Browse files
Merge pull request #172 from studiometa/bugfix/esm-cjs-conflict
[Bugfix] Fix CJS files being incorrectly transformed to ESM
2 parents ff7c46f + 45b6db9 commit 6288fa0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
### Fixed
10+
11+
- Fix CJS files being incorrectly transformed to ESM ([#172](https://github.com/studiometa/webpack-config/pull/172), [e4cccc2](https://github.com/studiometa/webpack-config/commit/e4cccc2))
12+
913
## [v6.2.0](https://github.com/studiometa/webpack-config/compare/6.1.0..6.2.0) (2024-10-03)
1014

1115
### Added

packages/webpack-config/src/webpack.base.config.js

-3
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,12 @@ export default async function getWebpackBaseConfig(config, { mode = 'production'
8787
},
8888
{
8989
test: /\.m?(j|t)s$/,
90-
// Exclude all but packages from the `@studiometa/` namespace
91-
exclude: [/node_modules[\\/](?!@studiometa[\\/]).*/],
9290
type: 'javascript/auto',
9391
use: {
9492
loader: 'esbuild-loader',
9593
options: {
9694
loader: 'ts',
9795
target: isDev ? 'es2022' : 'es2020',
98-
format: 'esm',
9996
},
10097
},
10198
},

0 commit comments

Comments
 (0)