{"version":3,"file":"parcel.cjs","sources":["../../src/plugin/parcel.ts"],"sourcesContent":["import { Reporter } from \"@parcel/plugin\";\nimport { build } from \"../cli/commands/build\";\nimport { dev } from \"../cli/commands/dev\";\n\nexport default new Reporter({\n  async report({ event, options }) {\n    if (event.type === \"buildStart\" && options.env.NODE_ENV === \"production\") {\n      await build();\n    }\n    if (event.type === \"watchStart\") {\n      await dev();\n    }\n  },\n});\n"],"names":["Reporter","build","dev"],"mappings":";;;;;;AAIA,aAAe,IAAIA,eAAQ,CAAC;AAC5B,EAAE,MAAM,MAAM,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;AACnC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;AAC9E,MAAM,MAAMC,WAAK,EAAE;AACnB,IAAI;AACJ,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,YAAY,EAAE;AACrC,MAAM,MAAMC,OAAG,EAAE;AACjB,IAAI;AACJ,EAAE;AACF,CAAC,CAAC;;;;"}