Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions webpack.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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.
const externalsBase = {
'fs': 'null',
'node-fetch': 'fetch',
Expand All @@ -12,6 +13,11 @@ const externalsBase = {
'rdflib': '$rdf'
}

const externalsESM = {
...externalsBase,
'rdflib': 'rdflib'
}

const commonConfig = {
mode: 'production',
entry: './src/index.ts',
Expand Down Expand Up @@ -83,7 +89,7 @@ export default [
environment: { module: true },
clean: false
},
externals: externalsBase,
externals: externalsESM,
experiments: {
outputModule: true
},
Expand All @@ -103,7 +109,7 @@ export default [
environment: { module: true },
clean: false
},
externals: externalsBase,
externals: externalsESM,
experiments: {
outputModule: true
},
Expand Down