{"version":3,"sources":["jsdelivr-header.js","/npm/rollup-plugin-shader@0.0.3/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,iECFA,SAAS,O,6DAIL,G,IAHH,eAGQ,IAAA,EAHE,CAAE,YAAa,UAAW,WAG5B,EAFR,EAEQ,EAFR,Q,IACA,sBACQ,IAAA,KAEC,EAAS,+BAAc,EAAS,G,MAE/B,C,UAAA,SAEQ,EAAM,G,GAEP,EAAQ,G,OAElB,I,EACG,EAAK,QAAS,kBAAmB,IACnC,QAAS,0BAA2B,IACpC,QAAS,UAAW,OAKV,C,KAFV,kBAAqC,KAAK,UAAW,GAArD,I,IAIY,C,SACS,I","file":"/npm/rollup-plugin-shader@0.0.3/dist/rollup-plugin-shader.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/rollup-plugin-shader@0.0.3/dist/rollup-plugin-shader.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import {\n    createFilter\n} from 'rollup-pluginutils';\n\nfunction glsl( {\n\tinclude = [ '**/*.glsl', '**/*.vs', '**/*.fs' ],\n\texclude,\n\tremoveComments = true\n} = {} ) {\n\n    const filter = createFilter( include, exclude );\n\n    return {\n\n        transform( code, id ) {\n\n            if ( !filter( id ) ) return;\n\n\t\t\tif ( removeComments ) {\n\t\t\t\tcode = code.replace( /[ \\t]*\\/\\/.*\\n/g, '' ) // remove //\n    \t\t\t\t.replace( /[ \\t]*\\/\\*[\\s\\S]*?\\*\\//g, '' ) // remove /* */\n    \t\t\t\t.replace( /\\n{2,}/g, '\\n' ) // # \\n+ to \\n\n\t\t\t}\n\n\t\t\tconst transformedCode = `export default ${ JSON.stringify( code ) };`;\n\n            return {\n                code: transformedCode,\n                map: {\n                    mappings: ''\n                }\n            };\n\n        }\n\n    };\n\n}\n\nexport default glsl;\n"]}