@tomjs/vite-plugin-hbuilderx 1.2.0 → 1.2.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 +4 -0
- package/dist/index.js +1 -3
- package/package.json +1 -1
- package/src/index.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.2.1](https://github.com/tomjs/hbuilderx/compare/vite%401.2.0...vite%401.2.1) (2026-01-06)
|
|
2
|
+
|
|
3
|
+
- fix: vite 中 sourcemap 使用默认值 [938411f](https://github.com/tomjs/hbuilderx/commit/938411f)
|
|
4
|
+
|
|
1
5
|
## [1.2.0](https://github.com/tomjs/hbuilderx/compare/vite%401.1.0...vite%401.2.0) (2026-01-06)
|
|
2
6
|
|
|
3
7
|
- feat: 使用 vite 日志 [ac9f9d9](https://github.com/tomjs/hbuilderx/commit/ac9f9d9)
|
package/dist/index.js
CHANGED
|
@@ -111,8 +111,7 @@ function preMergeOptions(options) {
|
|
|
111
111
|
}
|
|
112
112
|
}, options);
|
|
113
113
|
const opt = opts.extension || {};
|
|
114
|
-
if (isDev)
|
|
115
|
-
else {
|
|
114
|
+
if (isDev) {} else {
|
|
116
115
|
opt.minify ??= true;
|
|
117
116
|
opt.clean ??= true;
|
|
118
117
|
}
|
|
@@ -187,7 +186,6 @@ function useHBuilderxPlugin(options) {
|
|
|
187
186
|
else rollupOutput = Object.assign({}, rollupOutput, output);
|
|
188
187
|
return { build: {
|
|
189
188
|
outDir,
|
|
190
|
-
sourcemap: isDev ? true : config?.build?.sourcemap,
|
|
191
189
|
rollupOptions: { output: rollupOutput }
|
|
192
190
|
} };
|
|
193
191
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -61,7 +61,7 @@ function preMergeOptions(options?: PluginOptions): PluginOptions {
|
|
|
61
61
|
const opt = opts.extension || {};
|
|
62
62
|
|
|
63
63
|
if (isDev) {
|
|
64
|
-
opt.sourcemap = opt.sourcemap ?? true;
|
|
64
|
+
// opt.sourcemap = opt.sourcemap ?? true;
|
|
65
65
|
}
|
|
66
66
|
else {
|
|
67
67
|
opt.minify ??= true;
|
|
@@ -175,7 +175,6 @@ export function useHBuilderxPlugin(options?: PluginOptions): PluginOption {
|
|
|
175
175
|
return {
|
|
176
176
|
build: {
|
|
177
177
|
outDir,
|
|
178
|
-
sourcemap: isDev ? true : config?.build?.sourcemap,
|
|
179
178
|
rollupOptions: {
|
|
180
179
|
output: rollupOutput,
|
|
181
180
|
},
|