mirror of
https://github.com/markedjs/marked.git
synced 2026-11-30 16:48:05 +01:00
chore: Update dingus.js import json (#3611)
* Update dingus.js import json found a better way to import json that works also with other engines like chrome and graalvm ..... * Update dingus.js Fix: double quote replaced by single quote
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
import { marked } from '../lib/marked.esm.js';
|
||||
import { createRequire } from 'node:module';
|
||||
const require = createRequire(import.meta.url);
|
||||
const version = require('../package.json').version;
|
||||
import pkg from '../package.json' with { type: 'json' };
|
||||
|
||||
const version = pkg.version;
|
||||
const name = 'Marked';
|
||||
|
||||
export default function dingus(req, res) {
|
||||
|
||||
Reference in New Issue
Block a user