MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / createPluginBuildConfig

Function createPluginBuildConfig

dashboard/build.shared.mjs:130–142  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

128}
129
130export function createPluginBuildConfig(dir) {
131 return createBundleConfig({
132 entryName: "index",
133 entry: `./${dir}/src/entry.tsx`,
134 outDir: path.join(dashboardRoot, dir, "dist"),
135 filename: "index.js",
136 alias: {
137 "react$": path.join(SHIM_DIR, "react-shim.ts"),
138 "react/jsx-runtime$": path.join(SHIM_DIR, "jsx-runtime.ts"),
139 "react/jsx-dev-runtime$": path.join(SHIM_DIR, "jsx-runtime.ts"),
140 },
141 });
142}
143
144export function createDashboardDevConfig({ apiTarget, host, port }) {
145 return {

Callers 1

buildPluginFunction · 0.85

Calls 1

createBundleConfigFunction · 0.85

Tested by

no test coverage detected