miqro 7.0.6 → 7.0.8
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/build/esm/src/common/esbuild.d.ts +1 -0
- package/build/esm/src/common/esbuild.js +1 -1
- package/build/esm/src/common/jsx.js +1 -0
- package/build/lib.cjs +2 -1
- package/package.json +1 -1
- package/sea/install-esbuild.sh +1 -1
- package/sea/install-nodejs.sh +1 -1
- package/sea/node.version.tag +1 -1
- package/src/common/esbuild.ts +2 -1
- package/src/common/jsx.ts +1 -0
|
@@ -50,7 +50,7 @@ export async function esBuild(options, logger) {
|
|
|
50
50
|
try {
|
|
51
51
|
//const logger = getLogger(`${SERVER_IDENTIFIER}_ESBUILD`);
|
|
52
52
|
const valid = await validateESBuild(logger);
|
|
53
|
-
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map(e => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}`;
|
|
53
|
+
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map(e => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}${options.keepNames ? ` --keep-names` : ""}`;
|
|
54
54
|
logger?.trace(esBuildCMD);
|
|
55
55
|
if (!valid) {
|
|
56
56
|
const err = new Error(`esbuild installation at [${getESBuildBinaryPath()}] tampered`);
|
package/build/lib.cjs
CHANGED
|
@@ -9361,7 +9361,7 @@ async function esBuild2(options, logger) {
|
|
|
9361
9361
|
return new Promise(async (resolve24, reject) => {
|
|
9362
9362
|
try {
|
|
9363
9363
|
const valid = await validateESBuild(logger);
|
|
9364
|
-
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map((e) => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}`;
|
|
9364
|
+
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map((e) => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}${options.keepNames ? ` --keep-names` : ""}`;
|
|
9365
9365
|
logger?.trace(esBuildCMD);
|
|
9366
9366
|
if (!valid) {
|
|
9367
9367
|
const err = new Error(`esbuild installation at [${getESBuildBinaryPath()}] tampered`);
|
|
@@ -9409,6 +9409,7 @@ var parser = new Parser();
|
|
|
9409
9409
|
var DEFAULT_ESOPTION = {
|
|
9410
9410
|
platform: "neutral",
|
|
9411
9411
|
mainFields: "module,main",
|
|
9412
|
+
keepNames: true,
|
|
9412
9413
|
// platform: "node",
|
|
9413
9414
|
bundle: true,
|
|
9414
9415
|
jsxFactory: "JSX.createElement",
|
package/package.json
CHANGED
package/sea/install-esbuild.sh
CHANGED
package/sea/install-nodejs.sh
CHANGED
package/sea/node.version.tag
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
24.
|
|
1
|
+
24.4.0
|
package/src/common/esbuild.ts
CHANGED
|
@@ -57,6 +57,7 @@ export async function esBuild(options: {
|
|
|
57
57
|
entryPoints: [string];
|
|
58
58
|
mainFields?: string;
|
|
59
59
|
bundle?: boolean;
|
|
60
|
+
keepNames?: boolean;
|
|
60
61
|
jsxFactory?: string;
|
|
61
62
|
jsxFragment?: string;
|
|
62
63
|
minify?: boolean;
|
|
@@ -72,7 +73,7 @@ export async function esBuild(options: {
|
|
|
72
73
|
try {
|
|
73
74
|
//const logger = getLogger(`${SERVER_IDENTIFIER}_ESBUILD`);
|
|
74
75
|
const valid = await validateESBuild(logger);
|
|
75
|
-
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map(e => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}`;
|
|
76
|
+
const esBuildCMD = `${getESBuildBinaryPath()} "${options.entryPoints[0]}" ${(options.external ? options.external : NODEJS_EXTERNAL).map(e => `--external:${e}`).join(" ")} --loader:.js=jsx --jsx-factory=${options.jsxFactory} --jsx-fragment=${options.jsxFragment} ${options.bundle ? " --bundle" : ""}${options.minify ? " --minify" : ""}${options.outfile ? ` --outfile="${options.outfile}"` : ""}${options.platform ? ` --platform=${options.platform}` : ""}${options.mainFields ? ` --main-fields=${options.mainFields}` : ""}${options.keepNames ? ` --keep-names` : ""}`;
|
|
76
77
|
logger?.trace(esBuildCMD);
|
|
77
78
|
if (!valid) {
|
|
78
79
|
const err = new Error(`esbuild installation at [${getESBuildBinaryPath()}] tampered`);
|