@zumerbox/build 0.8.2 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/bin/index.js +13 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
#### [v0.8.3](https://github.com/zumerlab/zumerbox-build/compare/v0.8.2...v0.8.3)
|
6
|
+
|
7
|
+
> 31 May 2025
|
8
|
+
|
9
|
+
- add global name option [`ab1910b`](https://github.com/zumerlab/zumerbox-build/commit/ab1910bd6b1e5283cbc9f6ad9a1071bf82e7d4f5)
|
10
|
+
- Bumped version [`1a0ca3b`](https://github.com/zumerlab/zumerbox-build/commit/1a0ca3b5fa4e6125b89b2c66b55dd9b523819f0d)
|
11
|
+
|
5
12
|
#### [v0.8.2](https://github.com/zumerlab/zumerbox-build/compare/v0.8.1...v0.8.2)
|
6
13
|
|
7
14
|
> 25 April 2025
|
package/bin/index.js
CHANGED
@@ -53,6 +53,12 @@ const argv = yargs
|
|
53
53
|
type: 'boolean',
|
54
54
|
default: false
|
55
55
|
})
|
56
|
+
.option('global', {
|
57
|
+
alias: 'g',
|
58
|
+
describe: 'Set global exposure',
|
59
|
+
type: 'boolean',
|
60
|
+
default: false
|
61
|
+
})
|
56
62
|
.help('h')
|
57
63
|
.alias('h', 'help').argv;
|
58
64
|
|
@@ -101,6 +107,10 @@ if (argv.js) {
|
|
101
107
|
options.entryPoints.push(argv.js);
|
102
108
|
}
|
103
109
|
|
110
|
+
if (argv.global) {
|
111
|
+
options.globalName.push(bundlerName);
|
112
|
+
}
|
113
|
+
|
104
114
|
if (argv.module) {
|
105
115
|
options.outExtension = { '.js': '.mjs' }
|
106
116
|
}
|
@@ -121,6 +131,9 @@ const optionsMinify = {
|
|
121
131
|
platform: argv.platform
|
122
132
|
};
|
123
133
|
|
134
|
+
if (argv.global) {
|
135
|
+
optionsMinify.globalName.push(bundlerName);
|
136
|
+
}
|
124
137
|
if (argv.module) {
|
125
138
|
optionsMinify.outExtension = { '.js': '.mjs' }
|
126
139
|
}
|