Frontmatter
| id | 5396 |
| title | Neo.isRecord() does not work in dist/production |
| state | Closed |
| labels | bug |
| assignees | tobiu |
| createdAt | Apr 16, 2024, 10:52 AM |
| updatedAt | Apr 16, 2024, 11:06 AM |
| githubUrl | https://github.com/neomjs/neo/issues/5396 |
| author | tobiu |
| commentsCount | 0 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 16, 2024, 10:53 AM |
static isRecord(value) { return value?.constructor?.name === 'Record' || false }While we could change the logic to:
item.isRecord(we do set a custom flag), the ctor name does get minified.Since we are not minifying neo classNames I would argue that we should also not minify the name "Record", to give devs better chances of debugging inside dist/prod when needed.