| 1 |
const path = require('path'); |
| 2 |
|
| 3 |
// Entry key is `post-import-feedback` (not `dashboard`) to clarify that this entry |
| 4 |
// point is specific to the feedback feature, not a general "dashboard" bundle (spec |
| 5 |
// 027's own Build Artifacts note). Ships in production (no devOnly flag) — the widget |
| 6 |
// is eligibility-gated at enqueue time in PHP, not excluded from the build. |
| 7 |
module.exports = { |
| 8 |
entry: { |
| 9 |
// The entry KEY stays 'post-import-feedback' — unprefixed, so this stays a REAL |
| 10 |
// webpack entry emitting assets/js/post-import-feedback.js, which Widget.php enqueues |
| 11 |
// by that path on the dashboard. A `modules/` prefix would fold it into the SPA |
| 12 |
// bundle (react-src/generated/moduleManifest.ts, Constitution XIII) and break that |
| 13 |
// enqueue. Only the SOURCE path changed when the entry became TypeScript. |
| 14 |
'post-import-feedback': path.resolve(__dirname, 'assets/js/index.tsx'), |
| 15 |
'post-import-feedback-style': path.resolve(__dirname, 'assets/scss/index.scss'), |
| 16 |
}, |
| 17 |
}; |
| 18 |
|