Skip to content

Commit d458465

Browse files
authored
Merge pull request #36 from tsparticles/dev
Dynamic Imports support
2 parents ca9675d + eeee162 commit d458465

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1216
-1049
lines changed

CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,49 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.1.3](https://github.com/tsparticles/utils/compare/v2.1.2...v2.1.3) (2024-01-28)
7+
8+
**Note:** Version bump only for package tsparticles-utils-root
9+
10+
11+
12+
13+
14+
## [2.1.2](https://github.com/tsparticles/utils/compare/v2.1.1...v2.1.2) (2024-01-28)
15+
16+
**Note:** Version bump only for package tsparticles-utils-root
17+
18+
19+
20+
21+
22+
## [2.1.1](https://github.com/tsparticles/utils/compare/v2.1.0...v2.1.1) (2024-01-28)
23+
24+
**Note:** Version bump only for package tsparticles-utils-root
25+
26+
27+
28+
29+
30+
# [2.1.0](https://github.com/tsparticles/utils/compare/v2.0.5...v2.1.0) (2024-01-28)
31+
32+
**Note:** Version bump only for package tsparticles-utils-root
33+
34+
35+
36+
37+
38+
## [2.0.5](https://github.com/tsparticles/utils/compare/v2.0.4...v2.0.5) (2024-01-14)
39+
40+
41+
### Bug Fixes
42+
43+
* **deps:** update dependency eslint-plugin-jsdoc to v48 ([bc2be62](https://github.com/tsparticles/utils/commit/bc2be6245096e0c455ffd406f72605fbf6efc2a8))
44+
45+
46+
47+
48+
649
## [2.0.4](https://github.com/tsparticles/utils/compare/v2.0.3...v2.0.4) (2023-12-13)
750

851
**Note:** Version bump only for package tsparticles-utils-root

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
3-
"version": "2.0.4",
3+
"version": "2.1.3",
44
"npmClient": "pnpm",
55
"conventionalCommits": true,
66
"packages": [

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
"packages/*"
1313
],
1414
"devDependencies": {
15-
"@nrwl/workspace": "^17.1.3",
16-
"lerna": "^8.0.0",
17-
"nx": "^17.1.3",
18-
"typescript": "^5.3.2"
15+
"@nrwl/workspace": "^17.2.8",
16+
"lerna": "^8.0.2",
17+
"nx": "^17.2.8",
18+
"typescript": "^5.3.3"
1919
}
2020
}

packages/eslint-config/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,25 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.1.0](https://github.com/tsparticles/utils/compare/v2.0.5...v2.1.0) (2024-01-28)
7+
8+
**Note:** Version bump only for package @tsparticles/eslint-config
9+
10+
11+
12+
13+
14+
## [2.0.5](https://github.com/tsparticles/utils/compare/v2.0.4...v2.0.5) (2024-01-14)
15+
16+
17+
### Bug Fixes
18+
19+
* **deps:** update dependency eslint-plugin-jsdoc to v48 ([bc2be62](https://github.com/tsparticles/utils/commit/bc2be6245096e0c455ffd406f72605fbf6efc2a8))
20+
21+
22+
23+
24+
625
## [2.0.4](https://github.com/tsparticles/utils/compare/v2.0.3...v2.0.4) (2023-12-13)
726

827
**Note:** Version bump only for package @tsparticles/eslint-config
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/eslint-config",
3-
"version": "2.0.4",
3+
"version": "2.1.0",
44
"description": "tsParticles default ESLint Configuration",
55
"main": "eslint-config.js",
66
"license": "MIT",
@@ -11,15 +11,15 @@
1111
"access": "public"
1212
},
1313
"dependencies": {
14-
"@tsparticles/prettier-config": "^2.0.1",
15-
"@typescript-eslint/eslint-plugin": "^6.18.1",
16-
"@typescript-eslint/parser": "^6.18.1",
14+
"@tsparticles/prettier-config": "^2.1.0",
15+
"@typescript-eslint/eslint-plugin": "^6.19.1",
16+
"@typescript-eslint/parser": "^6.19.1",
1717
"eslint": "^8.56.0",
1818
"eslint-config-prettier": "^9.1.0",
1919
"eslint-plugin-import": "^2.29.1",
20-
"eslint-plugin-jsdoc": "^48.0.2",
20+
"eslint-plugin-jsdoc": "^48.0.4",
2121
"eslint-plugin-tsdoc": "^0.2.17",
22-
"prettier": "^3.1.1",
22+
"prettier": "^3.2.4",
2323
"typescript": "^5.3.3"
2424
}
2525
}

packages/prettier-config/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,22 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
# [2.1.0](https://github.com/tsparticles/utils/compare/v2.0.5...v2.1.0) (2024-01-28)
7+
8+
**Note:** Version bump only for package @tsparticles/prettier-config
9+
10+
11+
12+
13+
14+
## [2.0.5](https://github.com/tsparticles/utils/compare/v2.0.4...v2.0.5) (2024-01-14)
15+
16+
**Note:** Version bump only for package @tsparticles/prettier-config
17+
18+
19+
20+
21+
622
## 2.0.1 (2023-12-12)
723

824
**Note:** Version bump only for package @tsparticles/prettier-config

packages/prettier-config/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/prettier-config",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"description": "tsParticles default Prettier Configuration",
55
"main": "prettier-config.json",
66
"license": "MIT",
@@ -12,7 +12,7 @@
1212
"access": "public"
1313
},
1414
"dependencies": {
15-
"prettier": "^3.1.1",
15+
"prettier": "^3.2.4",
1616
"prettier-plugin-multiline-arrays": "^3.0.1"
1717
}
1818
}

packages/webpack-config/CHANGELOG.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,49 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [2.1.3](https://github.com/tsparticles/utils/compare/v2.1.2...v2.1.3) (2024-01-28)
7+
8+
**Note:** Version bump only for package @tsparticles/webpack-plugin
9+
10+
11+
12+
13+
14+
## [2.1.2](https://github.com/tsparticles/utils/compare/v2.1.1...v2.1.2) (2024-01-28)
15+
16+
**Note:** Version bump only for package @tsparticles/webpack-plugin
17+
18+
19+
20+
21+
22+
## [2.1.1](https://github.com/tsparticles/utils/compare/v2.1.0...v2.1.1) (2024-01-28)
23+
24+
**Note:** Version bump only for package @tsparticles/webpack-plugin
25+
26+
27+
28+
29+
30+
# [2.1.0](https://github.com/tsparticles/utils/compare/v2.0.5...v2.1.0) (2024-01-28)
31+
32+
**Note:** Version bump only for package @tsparticles/webpack-plugin
33+
34+
35+
36+
37+
38+
## [2.0.5](https://github.com/tsparticles/utils/compare/v2.0.4...v2.0.5) (2024-01-14)
39+
40+
41+
### Bug Fixes
42+
43+
* **deps:** update dependency eslint-plugin-jsdoc to v48 ([bc2be62](https://github.com/tsparticles/utils/commit/bc2be6245096e0c455ffd406f72605fbf6efc2a8))
44+
45+
46+
47+
48+
649
## [2.0.4](https://github.com/tsparticles/utils/compare/v2.0.3...v2.0.4) (2023-12-13)
750

851
**Note:** Version bump only for package @tsparticles/webpack-plugin

packages/webpack-config/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tsparticles/webpack-plugin",
3-
"version": "2.0.4",
3+
"version": "2.1.3",
44
"main": "dist/webpack-tsparticles.js",
55
"types": "dist/webpack-tsparticles.d.ts",
66
"license": "MIT",
@@ -25,29 +25,29 @@
2525
},
2626
"prettier": "@tsparticles/prettier-config",
2727
"dependencies": {
28-
"@babel/core": "^7.23.7",
29-
"@babel/preset-env": "^7.23.8",
30-
"@tsparticles/eslint-config": "^2.0.4",
31-
"@tsparticles/prettier-config": "^2.0.1",
32-
"@types/node": "^20.11.0",
28+
"@babel/core": "^7.23.9",
29+
"@babel/preset-env": "^7.23.9",
30+
"@tsparticles/eslint-config": "^2.1.0",
31+
"@tsparticles/prettier-config": "^2.1.0",
32+
"@types/node": "^20.11.9",
3333
"@types/webpack-bundle-analyzer": "^4.6.3",
3434
"@types/webpack-env": "^1.18.4",
35-
"@typescript-eslint/eslint-plugin": "^6.18.1",
36-
"@typescript-eslint/parser": "^6.18.1",
35+
"@typescript-eslint/eslint-plugin": "^6.19.1",
36+
"@typescript-eslint/parser": "^6.19.1",
3737
"babel-loader": "^9.1.3",
38-
"browserslist": "^4.22.2",
38+
"browserslist": "^4.22.3",
3939
"copyfiles": "^2.4.1",
4040
"eslint": "^8.56.0",
4141
"eslint-config-prettier": "^9.1.0",
4242
"eslint-plugin-import": "^2.29.1",
43-
"eslint-plugin-jsdoc": "^48.0.2",
43+
"eslint-plugin-jsdoc": "^48.0.4",
4444
"eslint-plugin-tsdoc": "^0.2.17",
45-
"prettier": "^3.1.1",
45+
"prettier": "^3.2.4",
4646
"prettier-plugin-multiline-arrays": "^3.0.1",
4747
"rimraf": "^5.0.5",
4848
"terser-webpack-plugin": "^5.3.10",
4949
"typescript": "^5.3.3",
50-
"webpack": "^5.89.0",
50+
"webpack": "^5.90.0",
5151
"webpack-bundle-analyzer": "^4.10.1",
5252
"webpack-cli": "^5.1.4"
5353
}

packages/webpack-config/src/bundles/buildBundle.ts

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { ExternalData } from "../common/ExternalData";
2-
import { getBundleEntry } from "./getBundleEntry";
32
import { getConfig } from "../common/getConfig";
43

54
interface BundleParams {
@@ -25,22 +24,20 @@ GitHub : https://www.github.com/matteobruni/tsparticles
2524
How to use? : Check the GitHub README
2625
v${version}`,
2726
minBanner = `tsParticles ${fixBundleName}v${version} by Matteo Bruni`,
28-
configs = [
29-
getConfig({
30-
entry: getBundleEntry(moduleName, false),
31-
version,
32-
banner,
33-
minBanner: minBanner,
34-
dir,
35-
bundle: false,
36-
additionalExternals,
37-
}),
38-
];
27+
configs = getConfig({
28+
entry: { format: "", name: moduleName, bundle: false },
29+
version,
30+
banner,
31+
minBanner: minBanner,
32+
dir,
33+
bundle: false,
34+
additionalExternals,
35+
});
3936

4037
if (bundle ?? true) {
4138
configs.push(
42-
getConfig({
43-
entry: getBundleEntry(`${moduleName}.bundle`, true),
39+
...getConfig({
40+
entry: { format: "", name: `${moduleName}.bundle`, bundle: true },
4441
version,
4542
banner,
4643
minBanner: minBanner,

0 commit comments

Comments
 (0)