(dir)
| 128 | } |
| 129 | |
| 130 | export 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 | |
| 144 | export function createDashboardDevConfig({ apiTarget, host, port }) { |
| 145 | return { |
no test coverage detected