| 1 |
const path = require('path'); |
| 2 |
|
| 3 |
module.exports = { |
| 4 |
entry: { |
| 5 |
'modules/block-recovery': path.resolve(__dirname, 'assets/js/index.tsx'), |
| 6 |
|
| 7 |
// Unprefixed key ON PURPOSE (spec 060, constitution XIII "screen-bound bundles"). |
| 8 |
// This bundle's only host is the block editor, where the SPA graph is not present, |
| 9 |
// and Editor.php enqueues it BY PATH as `js/block-recovery-editor.js` — a `modules/` |
| 10 |
// key would fold it into the SPA manifest and delete the file that enqueue names. |
| 11 |
// Same exception as `ai-editor` / `gutenberg`. It imports nothing from the SPA |
| 12 |
// runtime: the pure gate, `repairPost`, and the host's own `wp.*` globals. |
| 13 |
'block-recovery-editor': path.resolve(__dirname, 'assets/js/editor/index.ts'), |
| 14 |
}, |
| 15 |
}; |
| 16 |
|