eeg_nest/esbuild-client.js

28 lines
643 B
JavaScript
Raw Normal View History

2023-05-07 03:30:00 +00:00
const { context } = require("esbuild");
const { solidPlugin } = require("esbuild-plugin-solid");
(async () => {
const ctx = await context({
platform: "browser",
entryPoints: [
"src/views/hydration.ts",
],
bundle: true,
minify: false,
logLevel: "info",
plugins: [
solidPlugin({
solid: {
generate: "dom",
hydratable: true,
},
})
],
outdir: "static",
format: "cjs",
});
await ctx.watch();
console.log("Watching hydration script...");
})();