Skip to content

Conversation

@timea-solid
Copy link
Member

The ESM version was not working. Webpack needed to be improved.

Copilot AI review requested due to automatic review settings December 6, 2025 13:20
@timea-solid timea-solid merged commit 7769a85 into main Dec 6, 2025
10 checks passed
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the ESM builds by correctly configuring webpack externals for the rdflib dependency. The ESM bundles were failing because they incorrectly referenced rdflib as the UMD global $rdf instead of as an ES module import named rdflib.

Key changes:

  • Created a new externalsESM configuration object that maps rdflib to 'rdflib' for ES module imports
  • Updated both ESM build configurations (minified and unminified) to use the new externals configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

import path from 'path'
import TerserPlugin from 'terser-webpack-plugin'


Copy link

Copilot AI Dec 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Unnecessary blank line added. Consider removing this extra whitespace for cleaner formatting.

Suggested change

Copilot uses AI. Check for mistakes.
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.

2 participants