@zumerbox/build 0.8.0 → 0.8.1
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 +4 -9
- 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.1](https://github.com/zumerlab/zumerbox-build/compare/v0.8.0...v0.8.1)
|
6
|
+
|
7
|
+
> 25 April 2025
|
8
|
+
|
9
|
+
- fix ext [`63b1a52`](https://github.com/zumerlab/zumerbox-build/commit/63b1a5228f3624732f3610303578f9a20d4e9bbc)
|
10
|
+
- Bumped version [`54c48be`](https://github.com/zumerlab/zumerbox-build/commit/54c48bea1ced5bc4ac94aa5e528afb4b1c8a367d)
|
11
|
+
|
5
12
|
#### [v0.8.0](https://github.com/zumerlab/zumerbox-build/compare/v0.7.0...v0.8.0)
|
6
13
|
|
7
14
|
> 25 April 2025
|
package/bin/index.js
CHANGED
@@ -94,17 +94,14 @@ const options = {
|
|
94
94
|
outdir: argv.outdir,
|
95
95
|
legalComments: argv.comments ? 'inline' : 'none',
|
96
96
|
plugins: [sassPlugin()],
|
97
|
-
platform: argv.platform
|
97
|
+
platform: argv.platform,
|
98
|
+
outExtension: argv.module ? { '.js': '.mjs' } : null
|
98
99
|
};
|
99
100
|
|
100
101
|
if (argv.js) {
|
101
102
|
options.entryPoints.push(argv.js);
|
102
103
|
}
|
103
104
|
|
104
|
-
if (argv.module) {
|
105
|
-
options.outExtension = { '.js': '.mjs' }
|
106
|
-
}
|
107
|
-
|
108
105
|
|
109
106
|
if (argv.scss) {
|
110
107
|
options.entryPoints.push(argv.scss);
|
@@ -118,12 +115,10 @@ const optionsMinify = {
|
|
118
115
|
metafile: true,
|
119
116
|
minify: true,
|
120
117
|
plugins: [sassPlugin()],
|
121
|
-
platform: argv.platform
|
118
|
+
platform: argv.platform,
|
119
|
+
outExtension: argv.module ? { '.js': '.mjs' } : null
|
122
120
|
};
|
123
121
|
|
124
|
-
if (argv.module) {
|
125
|
-
optionsMinify.outExtension = { '.js': '.mjs' }
|
126
|
-
}
|
127
122
|
|
128
123
|
// Run esbuild
|
129
124
|
esbuild
|