Open patarapolw opened 3 years ago
Currently, a workaround, if you wanted to use 'jsonschema-definer' in *.mjs, is with two files
*.mjs
// commonjs.cjs module.exports = { S: require('jsonschema-definer').default }
runner.mjs import cjs from './commonjs.cjs' /** * @type {{ * S: import('jsonschema-definer').default * }} */ const { S } = cjs
Apparently, I don't yet know how to fix this either. Will make a PR once I make a successful experiment.
Currently, a workaround, if you wanted to use 'jsonschema-definer' in
*.mjs
, is with two filesApparently, I don't yet know how to fix this either. Will make a PR once I make a successful experiment.