replace assert to the with property in the dynamic import func

This commit is contained in:
segemun 2025-01-14 22:35:33 +01:00
parent fc07b0cd9a
commit 93440fe841

View File

@ -27,7 +27,7 @@ async function loadPasteBarAppPackage() {
const packageJsonUrl = pathToFileURL(packageJsonPath).href; const packageJsonUrl = pathToFileURL(packageJsonPath).href;
pastebarAppPackage = await import(packageJsonUrl, { pastebarAppPackage = await import(packageJsonUrl, {
assert: { type: 'json' } with: { type: 'json' }
}); });
} catch (e) { } catch (e) {