Skip to content

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
@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/

3 participants