scramjet/farm.config.ts
2024-07-19 19:55:15 -04:00

27 lines
643 B
TypeScript

import { defineConfig } from "@farmfe/core";
// import { RsdoctorRspackPlugin } from "@rsdoctor/rspack-plugin";
import { join } from "path";
import sj from "scramjet-farm-plugin";
export default defineConfig({
plugins: [sj()],
compilation: {
presetEnv: false,
mode: "development",
sourcemap: false,
input: {
worker: "src/worker/index.ts",
thread: "src/thread/thread.ts",
client: "src/client/index.ts",
config: "src/scramjet.config.ts",
},
output: {
path: "dist",
format: "cjs",
targetEnv: "browser-esnext",
entryFilename: "scramjet.[entryName].js",
filename: "scramjet.split.[name].js",
},
},
});