'use strict'; var acorn = require('acorn'); var deassert = require('deassert'); var deassertLoader = (function deassertLoader(source) { const { acornOptions = { sourceType: "module", ecmaVersion: "latest", }, ...options } = { modules: ["assert", "assert/strict", "node:assert", "node:assert/strict"], ...this.getOptions(), }; const ast = acorn.parse(source, acornOptions); const { code } = deassert(source, { ...options, ast, sourceMap: this.sourceMap ?? false, }); return code; }); module.exports = deassertLoader;