jeasx 0.2.2 → 0.3.0
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/ecosystem.config.cjs +2 -0
- package/esbuild.config.js +6 -1
- package/package.json +1 -1
package/ecosystem.config.cjs
CHANGED
package/esbuild.config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import "dotenv/config";
|
|
1
2
|
import * as esbuild from "esbuild";
|
|
2
3
|
|
|
3
4
|
const BUILD_TIME =
|
|
@@ -15,6 +16,10 @@ const BROWSER_PUBLIC_ENV = Object.keys(process.env)
|
|
|
15
16
|
{ "process.env.BROWSER_PUBLIC_BUILD_TIME": BUILD_TIME }
|
|
16
17
|
);
|
|
17
18
|
|
|
19
|
+
const ESBUILD_BROWSER_TARGET = process.env.ESBUILD_BROWSER_TARGET
|
|
20
|
+
? process.env.ESBUILD_BROWSER_TARGET.split(/\s*,\s*/)
|
|
21
|
+
: ["chrome109", "edge112", "firefox102", "safari16"];
|
|
22
|
+
|
|
18
23
|
const args = process.argv.slice(2);
|
|
19
24
|
|
|
20
25
|
const builds = [];
|
|
@@ -86,7 +91,7 @@ function buildBrowser(...entryPoints) {
|
|
|
86
91
|
outdir: "dist/browser",
|
|
87
92
|
platform: "browser",
|
|
88
93
|
format: "esm",
|
|
89
|
-
target:
|
|
94
|
+
target: ESBUILD_BROWSER_TARGET,
|
|
90
95
|
external: [
|
|
91
96
|
"*.avif",
|
|
92
97
|
"*.gif",
|