1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Desktop: Fixes #12790: Plugins: Fix importing sqlite3 (#12792)

This commit is contained in:
Henry Heino
2025-07-25 11:17:40 -07:00
committed by GitHub
parent 8b912b22cf
commit e13985a952

View File

@@ -51,10 +51,8 @@
const modulePath = args && args.length ? args[0] : null;
if (!modulePath) throw new Error('No module path specified on `require` call');
// The sqlite3 is actually part of the lib package so we need to do
// something convoluted to get it working.
if (modulePath === 'sqlite3') {
return require('../../node_modules/@joplin/lib/node_modules/sqlite3/lib/sqlite3.js');
return require('sqlite3');
}
if (modulePath === 'fs-extra') {