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.
@@ -1,3 +1,5 @@
1
+ require("dotenv/config");
2
+
1
3
  module.exports = {
2
4
  apps: [
3
5
  {
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: ["chrome109", "edge112", "firefox102", "safari16"],
94
+ target: ESBUILD_BROWSER_TARGET,
90
95
  external: [
91
96
  "*.avif",
92
97
  "*.gif",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeasx",
3
- "version": "0.2.2",
3
+ "version": "0.3.0",
4
4
  "description": "jeasx - the ease of JSX with the power of SSR",
5
5
  "keywords": [
6
6
  "jsx",