Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debump markdown-it and emit PrecompiledGlobalize.js #5181

Merged
merged 3 commits into from
May 9, 2024
Merged

Debump markdown-it and emit PrecompiledGlobalize.js #5181

merged 3 commits into from
May 9, 2024

Conversation

compulim
Copy link
Contributor

@compulim compulim commented May 9, 2024

Fixes #5175.

Changelog Entry

Fixed

Changed

Description

We should not emit .cjs as it is not understood by Webpack 4.

Also, recent bump of markdown-it@14 revealed a problem with their module field.

Specific Changes

  • Debump markdown-it@13
  • Emit /src/external/PrecompiledGlobalize.js and transpile it by babel/tsup
    • /lib/external/PrecompiledGlobalize.js should have __esModule marker
  • Disable ESLint for PrecompiledGlobalize.js
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

OEvgeny
OEvgeny previously approved these changes May 9, 2024
@compulim compulim marked this pull request as ready for review May 9, 2024 00:57
OEvgeny
OEvgeny previously approved these changes May 9, 2024
@compulim compulim merged commit b00b5c9 into main May 9, 2024
25 checks passed
@compulim compulim deleted the fix-cjs branch May 9, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bundling] No .cjs under /lib/
2 participants