{"version":3,"sources":["jsdelivr-header.js","/npm/rollup-plugin-nodent@0.2.1/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,eAAiB,QAAQ,mBACzB,aAAe,QAAQ,sBAAsB,aAEnD,OAAO,QAAU,SAAU,GAE1B,MAAM,EAAS,cADf,EAAU,GAAW,CAAC,GACc,QAAS,EAAQ,SAC/C,EAAW,IAAI,eAErB,MAAO,CACN,KAAM,SACN,OAAA,CAAQ,GACP,EAAQ,UAAY,cAAe,EAAU,EAAQ,UACpD,cAAe,EAAO,EAAK,WACP,IAAnB,EAAK,UACP,OAAO,OAAO,EAAS,CACtB,OAAQ,CACP,QAAS,CACR,eAAe,GAEhB,oBAAA,CAAqB,GAGpB,QAAQ,mCAAmC,QAAQ,EACpD,IAGH,EACA,SAAA,CAAU,EAAM,GACf,IAAK,EAAO,GACX,OAED,MAAM,EAAM,EAAS,QAAQ,EAAM,EAAI,GACvC,MAAO,CACN,KAAM,EAAI,KACV,IAAK,EAAQ,UAAY,EAAI,UAAY,CAAC,SAAU,IAEtD,EAEF","file":"/npm/rollup-plugin-nodent@0.2.1/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/rollup-plugin-nodent@0.2.1/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","const NodentCompiler = require('nodent-compiler');\nconst createFilter = require('rollup-pluginutils').createFilter;\n\nmodule.exports = function (options) {\n\toptions = options || {};\n\tconst filter = createFilter(options.include, options.exclude);\n\tconst compiler = new NodentCompiler();\n\n\treturn {\n\t\tname: 'nodent',\n\t\toptions(opts) {\n\t\t\toptions.sourcemap = 'sourcemap' in options ? options.sourcemap : // Plugin options\n\t\t\t\t'sourcemap' in opts ? opts.sourcemap : // Rollup options\n\t\t\t\t\topts.sourceMap !== false; // Old style Rollup options\n\t\t\tObject.assign(options, {\n\t\t\t\tparser: {\n\t\t\t\t\tplugins: {\n\t\t\t\t\t\tdynamicImport: true\n\t\t\t\t\t},\n\t\t\t\t\tonParserInstallation(acorn) {\n\t\t\t\t\t\t// Patch acorn to support dynamic import\n\t\t\t\t\t\t// eslint-disable-next-line import/no-extraneous-dependencies\n\t\t\t\t\t\trequire('acorn-dynamic-import/lib/inject').default(acorn);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t},\n\t\ttransform(code, id) {\n\t\t\tif (!filter(id)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst res = compiler.compile(code, id, options);\n\t\t\treturn {\n\t\t\t\tcode: res.code,\n\t\t\t\tmap: options.sourcemap ? res.sourcemap : {mappings: ''}\n\t\t\t};\n\t\t}\n\t};\n};\n"]}