{"version":3,"sources":["jsdelivr-header.js","/npm/rollup-plugin-miniprogram@1.0.1/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,IAAI,QAAU,QAAQ,mBACtB,SAAS,2BACL,MAAO,CACH,KAAM,cACN,eAAgB,SAAU,EAAS,GAC/B,OAAO,KAAK,GAAQ,SAAQ,SAAU,GAClC,QAAQ,IAAI,EAAQ,MAChB,EAAQ,KAAK,QAAQ,gBAAkB,IACvC,EAAO,GAAK,KAAO,EAAO,GAAK,KAAK,QAAQ,gCAAiC,eAC7E,EAAO,GAAK,KAAO,QAAQ,QAAQ,EAAO,GAAK,MAEvD,GACJ,EAER,CACA,QAAQ,QAAU","file":"/npm/rollup-plugin-miniprogram@1.0.1/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/rollup-plugin-miniprogram@1.0.1/src/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","\"use strict\";\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar index_1 = require(\"./wrapper/index\");\r\nfunction createMiniprogramWrapper() {\r\n    return {\r\n        name: 'miniprogram',\r\n        generateBundle: function (options, bundle) {\r\n            Object.keys(bundle).forEach(function (key) {\r\n                console.log(options.file);\r\n                if (options.file.indexOf(\"miniprogram\") > -1) {\r\n                    bundle[key].code = bundle[key].code.replace(/require\\((\\'|\\\")util(\\'|\\\")\\)/, 'global.util');\r\n                    bundle[key].code = index_1.default(bundle[key].code);\r\n                }\r\n            });\r\n        }\r\n    };\r\n}\r\nexports.default = createMiniprogramWrapper;\r\n"]}