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
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ Changelog

_Note: Gaps between patch versions are faulty, broken or test releases._

## v3.??.?? (2023-??-??)

#### :bug: Bug Fix

* Fixed an issue with building project as `fat html` with `ES20xx` module `build/webpack/plugins`

#### :house: Internal

* Added `test:circular-deps` npm script for analyzing circular deps
* Fixed few circular deps

## v3.33.0 (2022-12-28)

#### :rocket: New Feature
Expand Down
10 changes: 10 additions & 0 deletions build/webpack/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ Changelog
> - :house: [Internal]
> - :nail_care: [Polish]

## v3.??.?? (2023-??-??)

#### :boom: Breaking Change

* [Now `commonjs` module will not be installed for typescript processing into `fathtml` mode, instead module from tsconfig will be taken by default `config/default`.](https://github.com/V4Fire/Client/discussions/773)

#### :bug: Bug Fix

* Fixed an issue with building project as `fat html` with `ES20xx` module `build/webpack/plugins`

## v3.27.0 (2022-08-30)

#### :rocket: New Feature
Expand Down
6 changes: 6 additions & 0 deletions build/webpack/plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,11 @@ module.exports = async function plugins({name}) {
plugins.set('progress-plugin', createProgressPlugin(name));
}

if (config.webpack.fatHTML()) {
plugins.set('limit-chunk-count-plugin', new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1
}));
}

return plugins;
};
7 changes: 4 additions & 3 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,11 +812,12 @@ module.exports = config.createConfig({dirs: [__dirname, 'client']}, {
'client.tsconfig.json' :
'tsconfig.json';

const
{compilerOptions: {module}} = require(path.join(this.src.cwd(), configFile));

const client = this.extend({}, server, {
configFile,
compilerOptions: {
module: this.webpack.fatHTML() ? 'commonjs' : 'ES2020'
}
compilerOptions: {module}
});

return {
Expand Down
Loading