| 1 |
const path = require('path'); |
| 2 |
|
| 3 |
module.exports = { |
| 4 |
entry: { |
| 5 |
// A standalone entry, NOT a `modules/`-prefixed key: this script is |
| 6 |
// enqueued by hand on the Site Editor screen only (module.php), and a |
| 7 |
// `modules/` key would fold it into the SPA bundle, which never loads |
| 8 |
// there. Same reasoning as gutenberg-integration and elementor-integration. |
| 9 |
'site-editor-views': path.resolve(__dirname, 'assets/js/index.ts'), |
| 10 |
}, |
| 11 |
}; |
| 12 |
|