Frontmatter
| id | 6737 |
| title | buildScripts/buildESModules: smarter way to handle node module imports |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jun 1, 2025, 3:32 PM |
| updatedAt | Jun 1, 2025, 3:37 PM |
| githubUrl | https://github.com/neomjs/neo/issues/6737 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 1, 2025, 3:37 PM |
Inside
Portal.view.learn.ContentComponentwe have the following top-level import:import {marked} from '../../../../node_modules/marked/lib/marked.esm.js';This works fine inside the dev mode as well as webpack-based dist envs, but
dist/esmcan not handle it yet.Neo.config.basePathto match the top-level folder.workerBasePathfor the new env.