| 1 |
const path = require('path'); |
| 2 |
|
| 3 |
// Folds into the one first-party bundle via react-src/generated/moduleManifest.ts |
| 4 |
// (Constitution XIII) — it no longer emits assets/js/modules/mcp-server.js, and |
| 5 |
// Admin::enqueue_module_assets() that used to glob-enqueue it is gone. The code self-gates |
| 6 |
// on window.templately.mcpServer |
| 7 |
// before registering the Settings → AI Agents tab, so it is inert on sites without the |
| 8 |
// localized data (injected by REST/Connections.php). |
| 9 |
module.exports = { |
| 10 |
entry: { |
| 11 |
'modules/mcp-server': path.resolve(__dirname, 'assets/js/index.tsx'), |
| 12 |
}, |
| 13 |
}; |
| 14 |
|