Skip to content

Commit 64a08e4

Browse files
authored
Remove UMD build format (#71)
1 parent d5720c0 commit 64a08e4

File tree

3 files changed

+6
-22
lines changed

3 files changed

+6
-22
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- `truncate` string utility function
1313

14+
### Removed
15+
16+
- UMD build format from Rollup config
17+
1418
## [1.5.0] - 2025-07-07
1519

1620
### Added

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@neolution-ch/javascript-utils",
33
"version": "1.5.0",
4-
"description": "todo @drebrez",
4+
"description": "This is a collection of utilities that we have created to help with our development process.",
55
"homepage": "https://neolution-ch.github.io/javascript-utils",
66
"repository": {
77
"type": "git",
@@ -19,9 +19,6 @@
1919
}
2020
},
2121
"main": "dist/index.js",
22-
"umd:main": "dist/index.umd.js",
23-
"jsdelivr": "dist/index.umd.js",
24-
"unpkg": "dist/index.umd.js",
2522
"module": "dist/index.modern.js",
2623
"source": "src/index.ts",
2724
"jsnext:main": "dist/index.modern.js",

rollup.config.ts

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const plugins = [
3232
commonjs({
3333
include: /\/node_modules\//,
3434
}),
35-
nodeResolve,
35+
nodeResolve(),
3636
terser({
3737
output: { comments: false },
3838
compress: {
@@ -48,7 +48,6 @@ export default defineConfig([
4848
output: {
4949
file: "dist/index.js",
5050
format: "cjs",
51-
name: "JavaScriptUtilities",
5251
sourcemap: true,
5352
exports: "named",
5453
interop: "auto",
@@ -60,25 +59,9 @@ export default defineConfig([
6059
output: {
6160
file: "dist/index.modern.js",
6261
format: "esm",
63-
name: "JavaScriptUtilities",
6462
sourcemap: true,
6563
exports: "named",
6664
},
6765
plugins,
6866
},
69-
{
70-
input,
71-
output: {
72-
file: "dist/index.umd.js",
73-
format: "umd",
74-
name: "JavaScriptUtilities",
75-
sourcemap: true,
76-
exports: "named",
77-
globals: {
78-
"date-fns": "dateFns",
79-
uuid: "uuid",
80-
},
81-
},
82-
plugins,
83-
},
8467
]);

0 commit comments

Comments
 (0)