Skip to content

Commit 7769a85

Browse files
authored
Merge pull request #162 from SolidOS/esm
updated the rdflib for ESM builds
2 parents 15c3c7f + e1f91bd commit 7769a85

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

webpack.config.mjs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import path from 'path'
22
import TerserPlugin from 'terser-webpack-plugin'
33

4+
45
const externalsBase = {
56
'fs': 'null',
67
'node-fetch': 'fetch',
@@ -12,6 +13,11 @@ const externalsBase = {
1213
'rdflib': '$rdf'
1314
}
1415

16+
const externalsESM = {
17+
...externalsBase,
18+
'rdflib': 'rdflib'
19+
}
20+
1521
const commonConfig = {
1622
mode: 'production',
1723
entry: './src/index.ts',
@@ -83,7 +89,7 @@ export default [
8389
environment: { module: true },
8490
clean: false
8591
},
86-
externals: externalsBase,
92+
externals: externalsESM,
8793
experiments: {
8894
outputModule: true
8995
},
@@ -103,7 +109,7 @@ export default [
103109
environment: { module: true },
104110
clean: false
105111
},
106-
externals: externalsBase,
112+
externals: externalsESM,
107113
experiments: {
108114
outputModule: true
109115
},

0 commit comments

Comments
 (0)