@fz-firefly/unplugin 0.2.0 → 0.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/README.md
CHANGED
|
@@ -193,6 +193,7 @@ Content-Type: application/json
|
|
|
193
193
|
## 注意
|
|
194
194
|
|
|
195
195
|
- 默认只在 CI 上传;本地生产构建想验证时设置 `sourcemap.enabled: true`。
|
|
196
|
+
- 上传成功后按文件打印 `[firefly] sourcemap uploaded: <filePath>`。
|
|
196
197
|
- Taro 环境通过 `TARO_ENV` 识别;Taro H5 把上传放到 `compiler.shutdown`,同一个 `buildId` 只上传一次。
|
|
197
198
|
- `sourcemap.generate` 对标准 webpack 4/5 有效;uni-app 2 建议显式设置 `process.env.SOURCEMAP = 'true'`。
|
|
198
199
|
- 小程序真机堆栈可能经过微信二次编译,uni-app 的 map 不一定能完整还原;先用真实设备验证。
|
|
@@ -425,6 +425,7 @@ async function uploadSourcemaps(files, options) {
|
|
|
425
425
|
const batch = batches[index];
|
|
426
426
|
if (options.log !== false) console.log(`[firefly] sourcemap upload ${index + 1}/${batches.length} (${batch.length} files)`);
|
|
427
427
|
uploaded += await sendBatch(batch, options, 0);
|
|
428
|
+
if (options.log !== false) for (const file of batch) console.log(`[firefly] sourcemap uploaded: ${file.filePath}`);
|
|
428
429
|
}
|
|
429
430
|
return {
|
|
430
431
|
uploaded,
|
|
@@ -573,4 +574,4 @@ Object.defineProperty(exports, "runSourcemapUpload", {
|
|
|
573
574
|
}
|
|
574
575
|
});
|
|
575
576
|
|
|
576
|
-
//# sourceMappingURL=run-
|
|
577
|
+
//# sourceMappingURL=run-Bp9vcqXk.cjs.map
|
|
@@ -402,6 +402,7 @@ async function uploadSourcemaps(files, options) {
|
|
|
402
402
|
const batch = batches[index];
|
|
403
403
|
if (options.log !== false) console.log(`[firefly] sourcemap upload ${index + 1}/${batches.length} (${batch.length} files)`);
|
|
404
404
|
uploaded += await sendBatch(batch, options, 0);
|
|
405
|
+
if (options.log !== false) for (const file of batch) console.log(`[firefly] sourcemap uploaded: ${file.filePath}`);
|
|
405
406
|
}
|
|
406
407
|
return {
|
|
407
408
|
uploaded,
|
|
@@ -533,4 +534,4 @@ async function runSourcemapUpload(input) {
|
|
|
533
534
|
}
|
|
534
535
|
export { buildInlineScript as n, injectInlineScriptHtml as r, runSourcemapUpload as t };
|
|
535
536
|
|
|
536
|
-
//# sourceMappingURL=run-
|
|
537
|
+
//# sourceMappingURL=run-C7OeN-YM.js.map
|
package/dist/vite.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_run = require("./run-
|
|
5
|
+
const require_run = require("./run-Bp9vcqXk.cjs");
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
// src/vite.ts
|
|
8
8
|
/**
|
package/dist/vite.js
CHANGED
package/dist/webpack.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperties(exports, {
|
|
|
2
2
|
__esModule: { value: true },
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
|
-
const require_run = require("./run-
|
|
5
|
+
const require_run = require("./run-Bp9vcqXk.cjs");
|
|
6
6
|
let node_path = require("node:path");
|
|
7
7
|
// src/webpack.ts
|
|
8
8
|
const PLUGIN_NAME = "FireflyWebpackPlugin";
|
package/dist/webpack.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as buildInlineScript, r as injectInlineScriptHtml, t as runSourcemapUpload } from "./run-
|
|
1
|
+
import { n as buildInlineScript, r as injectInlineScriptHtml, t as runSourcemapUpload } from "./run-C7OeN-YM.js";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
// src/webpack.ts
|
|
4
4
|
const PLUGIN_NAME = "FireflyWebpackPlugin";
|