Skip to content

Commit 3381e64

Browse files
committed
shorten sqlite
1 parent ccb5e38 commit 3381e64

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/client/stdlib/sqlite.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22
const exports = {};
33
const response = await fetch("https://cdn.jsdelivr.net/npm/sql.js/dist/sql-wasm.js");
44
new Function("exports", await response.text())(exports);
5-
export default await exports.Module({
6-
locateFile(name) {
7-
return `https://cdn.jsdelivr.net/npm/sql.js/dist/${name}`;
8-
}
9-
});
5+
export default await exports.Module({locateFile: (name) => `https://cdn.jsdelivr.net/npm/sql.js/dist/${name}`});

0 commit comments

Comments
 (0)