2023-05-09 15:39:39 +00:00
|
|
|
const { build, context } = require("esbuild");
|
|
|
|
const { solidPlugin } = require("esbuild-plugin-solid");
|
|
|
|
const path = require("path");
|
|
|
|
const fs = require("fs");
|
|
|
|
const { glob } = require("glob");
|
|
|
|
|
|
|
|
(async() => {
|
|
|
|
const files = await glob("dist/**/*.jsx");
|
|
|
|
|
|
|
|
build({
|
|
|
|
platform: "node",
|
|
|
|
entryPoints: files,
|
|
|
|
bundle: false,
|
|
|
|
minify: true,
|
2023-05-23 20:55:52 +00:00
|
|
|
sourcemap: false,
|
2023-05-09 15:39:39 +00:00
|
|
|
logLevel: "info",
|
|
|
|
plugins: [solidPlugin({
|
|
|
|
solid: {
|
|
|
|
generate: "ssr",
|
|
|
|
hydratable: true,
|
|
|
|
},
|
|
|
|
})],
|
|
|
|
outdir: "dist",
|
|
|
|
outbase: "dist",
|
|
|
|
format: "cjs",
|
|
|
|
});
|
|
|
|
})();
|
2023-05-17 18:04:11 +00:00
|
|
|
|
|
|
|
build({
|
|
|
|
platform: "browser",
|
|
|
|
entryPoints: [
|
|
|
|
"src/views/hydration.ts",
|
|
|
|
],
|
|
|
|
bundle: true,
|
|
|
|
minify: true,
|
2023-05-23 20:55:52 +00:00
|
|
|
sourcemap: false,
|
2023-05-17 18:04:11 +00:00
|
|
|
logLevel: "info",
|
|
|
|
plugins: [
|
|
|
|
solidPlugin({
|
|
|
|
solid: {
|
|
|
|
generate: "dom",
|
|
|
|
hydratable: true,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
],
|
|
|
|
outdir: "static",
|
|
|
|
format: "cjs",
|
|
|
|
});
|
2023-06-12 03:25:18 +00:00
|
|
|
|
|
|
|
build({
|
|
|
|
platform: "browser",
|
|
|
|
entryPoints: [
|
|
|
|
"src/views/hydration/hydration_aulavirtual.ts",
|
|
|
|
],
|
|
|
|
bundle: true,
|
|
|
|
minify: true,
|
|
|
|
sourcemap: false,
|
|
|
|
logLevel: "info",
|
|
|
|
plugins: [
|
|
|
|
solidPlugin({
|
|
|
|
solid: {
|
|
|
|
generate: "dom",
|
|
|
|
hydratable: true,
|
|
|
|
},
|
|
|
|
})
|
|
|
|
],
|
|
|
|
outdir: "static",
|
|
|
|
format: "cjs",
|
|
|
|
});
|