We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22719c1 commit cb44503Copy full SHA for cb44503
src/modules.mjs
@@ -121,9 +121,7 @@ function calculateLibraries() {
121
122
if (NODERAWFS) {
123
// NODERAWFS requires NODEFS
124
- if (!JS_LIBRARIES.includes('libnodefs.js')) {
125
- libraries.push('libnodefs.js');
126
- }
+ libraries.push('libnodefs.js');
127
libraries.push('libnoderawfs.js');
128
// NODERAWFS overwrites libpath.js
129
libraries.push('libnodepath.js');
@@ -209,7 +207,7 @@ function calculateLibraries() {
209
207
libraries.push(...JS_LIBRARIES);
210
208
211
// Deduplicate libraries to avoid processing any library file multiple times
212
- libraries = libraries.filter((item, pos) => libraries.indexOf(item) == pos);
+ libraries = [...new Set(libraries)]
213
214
return libraries;
215
}
0 commit comments