@shellicar/build-graphql 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/astro.cjs +1 -1
- package/dist/cjs/chunk-7RM5UF5F.cjs +1 -0
- package/dist/cjs/{chunk-DOXWOAWQ.cjs.map → chunk-7RM5UF5F.cjs.map} +1 -1
- package/dist/cjs/{chunk-MBQ4CNY3.cjs → chunk-7YGQF7U2.cjs} +1 -1
- package/dist/cjs/{chunk-MBQ4CNY3.cjs.map → chunk-7YGQF7U2.cjs.map} +1 -1
- package/dist/cjs/{chunk-JHAJ3QBS.cjs → chunk-EHVPGWC6.cjs} +1 -1
- package/dist/cjs/{chunk-JHAJ3QBS.cjs.map → chunk-EHVPGWC6.cjs.map} +1 -1
- package/dist/cjs/{chunk-SKRRSMYU.cjs → chunk-FQOZ54DK.cjs} +1 -1
- package/dist/cjs/{chunk-SKRRSMYU.cjs.map → chunk-FQOZ54DK.cjs.map} +1 -1
- package/dist/cjs/{chunk-CIMVULAF.cjs → chunk-IB546GT2.cjs} +1 -1
- package/dist/cjs/{chunk-CIMVULAF.cjs.map → chunk-IB546GT2.cjs.map} +1 -1
- package/dist/cjs/{chunk-OBTYEQED.cjs → chunk-NGM5FFVF.cjs} +1 -1
- package/dist/cjs/{chunk-OBTYEQED.cjs.map → chunk-NGM5FFVF.cjs.map} +1 -1
- package/dist/cjs/{chunk-UQK6I7TV.cjs → chunk-QJ4ULDT5.cjs} +1 -1
- package/dist/cjs/chunk-QJ4ULDT5.cjs.map +1 -0
- package/dist/cjs/{chunk-HZGDAS4U.cjs → chunk-SBYZCLDA.cjs} +1 -1
- package/dist/cjs/{chunk-HZGDAS4U.cjs.map → chunk-SBYZCLDA.cjs.map} +1 -1
- package/dist/cjs/{chunk-E7MJACVF.cjs → chunk-Y5UUEGL7.cjs} +1 -1
- package/dist/cjs/{chunk-E7MJACVF.cjs.map → chunk-Y5UUEGL7.cjs.map} +1 -1
- package/dist/cjs/core/consts.cjs +1 -1
- package/dist/cjs/core/createPlugin.cjs +1 -1
- package/dist/cjs/core/esbuild/createEsbuild.cjs +1 -1
- package/dist/cjs/core/esbuild/esbuildSetup.cjs +1 -1
- package/dist/cjs/core/graphqlPluginFactory.cjs +1 -1
- package/dist/cjs/core/handleErrors.cjs +1 -1
- package/dist/cjs/core/plugin.cjs +1 -1
- package/dist/cjs/core/vite/createVite.cjs +1 -1
- package/dist/cjs/core/vite/viteHotUpdate.cjs +1 -1
- package/dist/cjs/esbuild.cjs +1 -1
- package/dist/cjs/farm.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/nuxt.cjs +1 -1
- package/dist/cjs/rolldown.cjs +1 -1
- package/dist/cjs/rollup.cjs +1 -1
- package/dist/cjs/rspack.cjs +1 -1
- package/dist/cjs/vite.cjs +1 -1
- package/dist/cjs/webpack.cjs +1 -1
- package/dist/esm/astro.js +1 -1
- package/dist/esm/{chunk-KP2WBUBY.js → chunk-AIWVOWWP.js} +1 -1
- package/dist/esm/{chunk-KP2WBUBY.js.map → chunk-AIWVOWWP.js.map} +1 -1
- package/dist/esm/chunk-BP5YEWAE.js +1 -0
- package/dist/esm/{chunk-Q5LQWXTP.js.map → chunk-BP5YEWAE.js.map} +1 -1
- package/dist/esm/{chunk-RAJPMJIA.js → chunk-HHQRI244.js} +1 -1
- package/dist/esm/{chunk-RAJPMJIA.js.map → chunk-HHQRI244.js.map} +1 -1
- package/dist/esm/{chunk-EHX23IKM.js → chunk-IWP2M6U6.js} +1 -1
- package/dist/esm/chunk-IWP2M6U6.js.map +1 -0
- package/dist/esm/{chunk-LWPNIV4H.js → chunk-JMXMDH5W.js} +1 -1
- package/dist/esm/{chunk-LWPNIV4H.js.map → chunk-JMXMDH5W.js.map} +1 -1
- package/dist/esm/{chunk-BQN3IXO6.js → chunk-KZLVSTJX.js} +1 -1
- package/dist/esm/{chunk-BQN3IXO6.js.map → chunk-KZLVSTJX.js.map} +1 -1
- package/dist/esm/{chunk-PZQXCGUD.js → chunk-TVQMLG5G.js} +1 -1
- package/dist/esm/{chunk-PZQXCGUD.js.map → chunk-TVQMLG5G.js.map} +1 -1
- package/dist/esm/{chunk-I7FL5AOD.js → chunk-V7I7VEO4.js} +1 -1
- package/dist/esm/{chunk-I7FL5AOD.js.map → chunk-V7I7VEO4.js.map} +1 -1
- package/dist/esm/{chunk-USSKRIVQ.js → chunk-XVKHWUNH.js} +1 -1
- package/dist/esm/{chunk-USSKRIVQ.js.map → chunk-XVKHWUNH.js.map} +1 -1
- package/dist/esm/core/consts.js +1 -1
- package/dist/esm/core/createPlugin.js +1 -1
- package/dist/esm/core/esbuild/createEsbuild.js +1 -1
- package/dist/esm/core/esbuild/esbuildSetup.js +1 -1
- package/dist/esm/core/graphqlPluginFactory.js +1 -1
- package/dist/esm/core/handleErrors.js +1 -1
- package/dist/esm/core/plugin.js +1 -1
- package/dist/esm/core/vite/createVite.js +1 -1
- package/dist/esm/core/vite/viteHotUpdate.js +1 -1
- package/dist/esm/esbuild.js +1 -1
- package/dist/esm/farm.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/nuxt.js +1 -1
- package/dist/esm/rolldown.js +1 -1
- package/dist/esm/rollup.js +1 -1
- package/dist/esm/rspack.js +1 -1
- package/dist/esm/vite.js +1 -1
- package/dist/esm/webpack.js +1 -1
- package/package.json +53 -53
- package/dist/cjs/chunk-DOXWOAWQ.cjs +0 -1
- package/dist/cjs/chunk-UQK6I7TV.cjs.map +0 -1
- package/dist/esm/chunk-EHX23IKM.js.map +0 -1
- package/dist/esm/chunk-Q5LQWXTP.js +0 -1
package/dist/cjs/astro.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs");var u=require("./chunk-PK6SKIKE.cjs"),r=u.__name(r=>({name:"build-graphql",hooks:{"astro:config:setup":u.__name(async u=>{u.config.vite.plugins||=[],u.config.vite.plugins.push(e.plugin.vite(r))},"astro:config:setup")}}),"default");module.exports=r;//# sourceMappingURL=astro.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var r=require("./chunk-IB546GT2.cjs"),u=require("unplugin").createUnplugin(r.graphqlPluginFactory);exports.plugin=u;//# sourceMappingURL=chunk-7RM5UF5F.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/plugin.ts"],"names":["createUnplugin","graphqlPluginFactory"],"mappings":"gGAGO,IAAM,MAAA,GAASA,wBAAeC,sCAAoB","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/plugin.ts"],"names":["createUnplugin","graphqlPluginFactory"],"mappings":"gGAGO,IAAM,MAAA,GAASA,wBAAeC,sCAAoB","file":"chunk-7RM5UF5F.cjs","sourcesContent":["import { createUnplugin } from 'unplugin';\nimport { graphqlPluginFactory } from './graphqlPluginFactory';\n\nexport const plugin = createUnplugin(graphqlPluginFactory);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-EI2EMLQX.cjs"),e=require("./chunk-2J3SQW7Q.cjs"),o=require("./chunk-BIQSJSAS.cjs"),t=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-EI2EMLQX.cjs"),e=require("./chunk-2J3SQW7Q.cjs"),o=require("./chunk-BIQSJSAS.cjs"),t=require("./chunk-QJ4ULDT5.cjs"),a=require("./chunk-PK6SKIKE.cjs"),i={NO_FILES_MATCHED:"No GraphQL files found for the pattern",PARTIAL_IMPORT:"Some GraphQL files were not imported",TYPEDEFS_MISSING:`Typedefs not imported. Make sure to import from ${t.virtualModuleId}`};function h(t,a,{graphqlMatched:h,graphqlImports:p,importedTypedefs:s,globPattern:n}){if("IGNORE"!==t){if(0===h){if("ABORT"===t)throw new r.GraphQLLoadNoFilesError(n);a.error(i.NO_FILES_MATCHED,{globPattern:n})}if(p!==h){if("ABORT"===t)throw new e.GraphQLLoadPartialImportError(p,h);a.error(i.PARTIAL_IMPORT,{graphqlImports:p,graphqlMatched:h})}if(!s){if("ABORT"===t)throw new o.GraphQLLoadTypedefsMissingError;a.error(i.TYPEDEFS_MISSING)}}}a.__name(h,"handleErrors"),exports.handleErrors=h;//# sourceMappingURL=chunk-7YGQF7U2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/handleErrors.ts"],"names":["virtualModuleId","GraphQLLoadNoFilesError","GraphQLLoadPartialImportError","GraphQLLoadTypedefsMissingError","__name"],"mappings":";AAcA,IAAM,SAAA,GAAY;AAAA,EAChB,gBAAA,EAAkB,wCAAA;AAAA,EAClB,cAAA,EAAgB,sCAAA;AAAA,EAChB,gBAAA,EAAkB,mDAAmDA,iCAAe,CAAA;AACtF,CAAA;AAEO,SAAS,YAAA,CAAa,aAA0B,MAAA,EAAiB,EAAE,gBAAgB,cAAA,EAAgB,gBAAA,EAAkB,aAAY,EAAwB;AAC9J,EAAA,IAAI,WAAA,KAAA,QAAA,eAAoC;AACtC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,mBAAmB,CAAA,EAAG;AACxB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,0CAAwB,WAAW,CAAA;AAAA,IAC/C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,SAAA,CAAU,gBAAA,EAAkB,EAAE,aAAa,CAAA;AAAA,EAC1D;AAEA,EAAA,IAAI,mBAAmB,cAAA,EAAgB;AACrC,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,+CAAA,CAA8B,cAAA,EAAgB,cAAc,CAAA;AAAA,IACxE;AACA,IAAA,MAAA,CAAO,MAAM,SAAA,CAAU,cAAA,EAAgB,EAAE,cAAA,EAAgB,gBAAgB,CAAA;AAAA,EAC3E;AAEA,EAAA,IAAI,CAAC,gBAAA,EAAkB;AACrB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,iDAAA,EAAgC;AAAA,IAC5C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,UAAU,gBAAgB,CAAA;AAAA,EACzC;AACF;AAzBgBC,wBAAA,CAAA,YAAA,EAAA,cAAA,CAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/handleErrors.ts"],"names":["virtualModuleId","GraphQLLoadNoFilesError","GraphQLLoadPartialImportError","GraphQLLoadTypedefsMissingError","__name"],"mappings":";AAcA,IAAM,SAAA,GAAY;AAAA,EAChB,gBAAA,EAAkB,wCAAA;AAAA,EAClB,cAAA,EAAgB,sCAAA;AAAA,EAChB,gBAAA,EAAkB,mDAAmDA,iCAAe,CAAA;AACtF,CAAA;AAEO,SAAS,YAAA,CAAa,aAA0B,MAAA,EAAiB,EAAE,gBAAgB,cAAA,EAAgB,gBAAA,EAAkB,aAAY,EAAwB;AAC9J,EAAA,IAAI,WAAA,KAAA,QAAA,eAAoC;AACtC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,mBAAmB,CAAA,EAAG;AACxB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,0CAAwB,WAAW,CAAA;AAAA,IAC/C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,SAAA,CAAU,gBAAA,EAAkB,EAAE,aAAa,CAAA;AAAA,EAC1D;AAEA,EAAA,IAAI,mBAAmB,cAAA,EAAgB;AACrC,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,+CAAA,CAA8B,cAAA,EAAgB,cAAc,CAAA;AAAA,IACxE;AACA,IAAA,MAAA,CAAO,MAAM,SAAA,CAAU,cAAA,EAAgB,EAAE,cAAA,EAAgB,gBAAgB,CAAA;AAAA,EAC3E;AAEA,EAAA,IAAI,CAAC,gBAAA,EAAkB;AACrB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAIC,iDAAA,EAAgC;AAAA,IAC5C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,UAAU,gBAAgB,CAAA;AAAA,EACzC;AACF;AAzBgBC,wBAAA,CAAA,YAAA,EAAA,cAAA,CAAA","file":"chunk-7YGQF7U2.cjs","sourcesContent":["import { ErrorPolicy } from '../enums';\nimport { GraphQLLoadNoFilesError } from './../errors/GraphQLLoadNoFilesError';\nimport { GraphQLLoadPartialImportError } from './../errors/GraphQLLoadPartialImportError';\nimport { GraphQLLoadTypedefsMissingError } from './../errors/GraphQLLoadTypedefsMissingError';\nimport type { GlobPattern, ILogger } from '../types';\nimport { virtualModuleId } from './consts';\n\ninterface HandleErrorsOptions {\n graphqlMatched: number;\n graphqlImports: number;\n importedTypedefs: boolean;\n globPattern: GlobPattern;\n}\n\nconst errorText = {\n NO_FILES_MATCHED: 'No GraphQL files found for the pattern',\n PARTIAL_IMPORT: 'Some GraphQL files were not imported',\n TYPEDEFS_MISSING: `Typedefs not imported. Make sure to import from ${virtualModuleId}`,\n};\n\nexport function handleErrors(errorPolicy: ErrorPolicy, logger: ILogger, { graphqlMatched, graphqlImports, importedTypedefs, globPattern }: HandleErrorsOptions) {\n if (errorPolicy === ErrorPolicy.Ignore) {\n return;\n }\n\n if (graphqlMatched === 0) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadNoFilesError(globPattern);\n }\n logger.error(errorText.NO_FILES_MATCHED, { globPattern });\n }\n\n if (graphqlImports !== graphqlMatched) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadPartialImportError(graphqlImports, graphqlMatched);\n }\n logger.error(errorText.PARTIAL_IMPORT, { graphqlImports, graphqlMatched });\n }\n\n if (!importedTypedefs) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadTypedefsMissingError();\n }\n logger.error(errorText.TYPEDEFS_MISSING);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-UBVX77VS.cjs"),r=require("./chunk-R464AKCE.cjs"),t=require("./chunk-AP6IQLKS.cjs"),a=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-UBVX77VS.cjs"),r=require("./chunk-R464AKCE.cjs"),t=require("./chunk-AP6IQLKS.cjs"),a=require("./chunk-7YGQF7U2.cjs"),l=require("./chunk-GLONE37I.cjs"),i=require("./chunk-QJ4ULDT5.cjs"),u=require("./chunk-PK6SKIKE.cjs").__name((u,n,d)=>{let s=!1;const c=[];let o=[];return{name:i.pluginName,enforce:"pre",...u,async buildStart(){s=!1,c.length=0,o=await t.findFiles(n),d.debug("Matched GraphQL files:",o)},resolveId(e){if(e===i.virtualModuleId||e.endsWith(".graphql"))return l.resolveVirtualId(e)},async load(a){if(a===l.resolveVirtualId(i.virtualModuleId)){if(s=!0,n.features.VITE_WATCH){const e=await t.findFiles(n);for(const r of e)this.addWatchFile(r)}return await r.loadVirtualModule(n,d)}const u=await e.loadGraphqlModule(a,n);if(void 0!==u)return c.push(a),u},buildEnd(){d.debug("Build end",{graphqlMatched:o,graphqlImports:c,importedTypedefs:s}),a.handleErrors(n.errorPolicy,d,{graphqlMatched:o.length,graphqlImports:c.length,importedTypedefs:s,globPattern:n.globPattern})}}},"createPlugin");exports.createPlugin=u;//# sourceMappingURL=chunk-EHVPGWC6.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/createPlugin.ts"],"names":["__name","pluginName","findFiles","virtualModuleId","resolveVirtualId","loadVirtualModule","loadGraphqlModule","handleErrors"],"mappings":";AAeO,IAAM,YAAA,mBAAeA,wBAAA,CAAA,CAAC,QAAA,EAAoB,OAAA,EAA0B,MAAA,KAAqC;AAC9G,EAAA,IAAI,gBAAA,GAAmB,KAAA;AACvB,EAAA,MAAM,iBAA2B,EAAC;AAClC,EAAA,IAAI,iBAA2B,EAAC;AAEhC,EAAA,OAAO;AAAA,IACL,IAAA,EAAMC,4BAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IAET,GAAG,QAAA;AAAA,IAEH,MAAM,UAAA,GAAa;AACjB,MAAA,gBAAA,GAAmB,KAAA;AACnB,MAAA,cAAA,CAAe,MAAA,GAAS,CAAA;AACxB,MAAA,cAAA,GAAiB,MAAMC,4BAAU,OAAO,CAAA;AACxC,MAAA,MAAA,CAAO,KAAA,CAAM,0BAA0B,cAAc,CAAA;AAAA,IACvD,CAAA;AAAA,IAEA,UAAU,EAAA,EAAI;AACZ,MAAA,IAAI,EAAA,KAAOC,iCAAA,IAAmB,EAAA,CAAG,QAAA,CAAS,UAAU,CAAA,EAAG;AACrD,QAAA,OAAOC,mCAAiB,EAAE,CAAA;AAAA,MAC5B;AAAA,IACF,CAAA;AAAA,IAEA,MAAM,KAAK,EAAA,EAAI;AACb,MAAA,IAAI,EAAA,KAAOA,kCAAA,CAAiBD,iCAAe,CAAA,EAAG;AAC5C,QAAA,gBAAA,GAAmB,IAAA;AAEnB,QAAA,IAAI,OAAA,CAAQ,SAAS,UAAA,EAAY;AAC/B,UAAA,MAAM,KAAA,GAAQ,MAAMD,2BAAA,CAAU,OAAO,CAAA;AACrC,UAAA,KAAA,MAAW,KAAK,KAAA,EAAO;AACrB,YAAA,IAAA,CAAK,aAAa,CAAC,CAAA;AAAA,UACrB;AAAA,QACF;AAEA,QAAA,OAAO,MAAMG,mCAAA,CAAkB,OAAA,EAAS,MAAM,CAAA;AAAA,MAChD;AAEA,MAAA,MAAM,MAAA,GAAS,MAAMC,mCAAA,CAAkB,EAAA,EAAI,OAAO,CAAA;AAClD,MAAA,IAAI,WAAW,MAAA,EAAW;AACxB,QAAA,cAAA,CAAe,KAAK,EAAE,CAAA;AACtB,QAAA,OAAO,MAAA;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IAEA,QAAA,GAAW;AACT,MAAA,MAAA,CAAO,MAAM,WAAA,EAAa;AAAA,QACxB,cAAA;AAAA,QACA,cAAA;AAAA,QACA;AAAA,OACD,CAAA;AAED,MAAAC,8BAAA,CAAa,OAAA,CAAQ,aAAa,MAAA,EAAQ;AAAA,QACxC,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAA;AAAA,QACA,aAAa,OAAA,CAAQ;AAAA,OACtB,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,EA5D4B,cAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/createPlugin.ts"],"names":["__name","pluginName","findFiles","virtualModuleId","resolveVirtualId","loadVirtualModule","loadGraphqlModule","handleErrors"],"mappings":";AAeO,IAAM,YAAA,mBAAeA,wBAAA,CAAA,CAAC,QAAA,EAAoB,OAAA,EAA0B,MAAA,KAAqC;AAC9G,EAAA,IAAI,gBAAA,GAAmB,KAAA;AACvB,EAAA,MAAM,iBAA2B,EAAC;AAClC,EAAA,IAAI,iBAA2B,EAAC;AAEhC,EAAA,OAAO;AAAA,IACL,IAAA,EAAMC,4BAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IAET,GAAG,QAAA;AAAA,IAEH,MAAM,UAAA,GAAa;AACjB,MAAA,gBAAA,GAAmB,KAAA;AACnB,MAAA,cAAA,CAAe,MAAA,GAAS,CAAA;AACxB,MAAA,cAAA,GAAiB,MAAMC,4BAAU,OAAO,CAAA;AACxC,MAAA,MAAA,CAAO,KAAA,CAAM,0BAA0B,cAAc,CAAA;AAAA,IACvD,CAAA;AAAA,IAEA,UAAU,EAAA,EAAI;AACZ,MAAA,IAAI,EAAA,KAAOC,iCAAA,IAAmB,EAAA,CAAG,QAAA,CAAS,UAAU,CAAA,EAAG;AACrD,QAAA,OAAOC,mCAAiB,EAAE,CAAA;AAAA,MAC5B;AAAA,IACF,CAAA;AAAA,IAEA,MAAM,KAAK,EAAA,EAAI;AACb,MAAA,IAAI,EAAA,KAAOA,kCAAA,CAAiBD,iCAAe,CAAA,EAAG;AAC5C,QAAA,gBAAA,GAAmB,IAAA;AAEnB,QAAA,IAAI,OAAA,CAAQ,SAAS,UAAA,EAAY;AAC/B,UAAA,MAAM,KAAA,GAAQ,MAAMD,2BAAA,CAAU,OAAO,CAAA;AACrC,UAAA,KAAA,MAAW,KAAK,KAAA,EAAO;AACrB,YAAA,IAAA,CAAK,aAAa,CAAC,CAAA;AAAA,UACrB;AAAA,QACF;AAEA,QAAA,OAAO,MAAMG,mCAAA,CAAkB,OAAA,EAAS,MAAM,CAAA;AAAA,MAChD;AAEA,MAAA,MAAM,MAAA,GAAS,MAAMC,mCAAA,CAAkB,EAAA,EAAI,OAAO,CAAA;AAClD,MAAA,IAAI,WAAW,MAAA,EAAW;AACxB,QAAA,cAAA,CAAe,KAAK,EAAE,CAAA;AACtB,QAAA,OAAO,MAAA;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IAEA,QAAA,GAAW;AACT,MAAA,MAAA,CAAO,MAAM,WAAA,EAAa;AAAA,QACxB,cAAA;AAAA,QACA,cAAA;AAAA,QACA;AAAA,OACD,CAAA;AAED,MAAAC,8BAAA,CAAa,OAAA,CAAQ,aAAa,MAAA,EAAQ;AAAA,QACxC,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAA;AAAA,QACA,aAAa,OAAA,CAAQ;AAAA,OACtB,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,EA5D4B,cAAA","file":"chunk-EHVPGWC6.cjs","sourcesContent":["import type { UnpluginOptions } from 'unplugin';\nimport type { ILogger } from '../types';\nimport { pluginName, virtualModuleId } from './consts';\nimport { findFiles } from './findFiles';\nimport { loadGraphqlModule } from './graphql/loadGraphqlModule';\nimport { loadVirtualModule } from './graphql/loadVirtualModule';\nimport { handleErrors } from './handleErrors';\nimport { resolveVirtualId } from './resolveVirtualId';\nimport type { ResolvedOptions } from './types';\n\ntype Features = {\n esbuild: UnpluginOptions['esbuild'];\n vite: UnpluginOptions['vite'];\n};\n\nexport const createPlugin = (features: Features, options: ResolvedOptions, logger: ILogger): UnpluginOptions => {\n let importedTypedefs = false;\n const graphqlImports: string[] = [];\n let graphqlMatched: string[] = [];\n\n return {\n name: pluginName,\n enforce: 'pre',\n\n ...features,\n\n async buildStart() {\n importedTypedefs = false;\n graphqlImports.length = 0;\n graphqlMatched = await findFiles(options);\n logger.debug('Matched GraphQL files:', graphqlMatched);\n },\n\n resolveId(id) {\n if (id === virtualModuleId || id.endsWith('.graphql')) {\n return resolveVirtualId(id);\n }\n },\n\n async load(id) {\n if (id === resolveVirtualId(virtualModuleId)) {\n importedTypedefs = true;\n\n if (options.features.VITE_WATCH) {\n const files = await findFiles(options);\n for (const f of files) {\n this.addWatchFile(f);\n }\n }\n\n return await loadVirtualModule(options, logger);\n }\n\n const result = await loadGraphqlModule(id, options);\n if (result !== undefined) {\n graphqlImports.push(id);\n return result;\n }\n },\n\n buildEnd() {\n logger.debug('Build end', {\n graphqlMatched,\n graphqlImports,\n importedTypedefs,\n });\n\n handleErrors(options.errorPolicy, logger, {\n graphqlMatched: graphqlMatched.length,\n graphqlImports: graphqlImports.length,\n importedTypedefs,\n globPattern: options.globPattern,\n });\n },\n } satisfies UnpluginOptions;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-AP6IQLKS.cjs"),r=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-AP6IQLKS.cjs"),r=require("./chunk-QJ4ULDT5.cjs"),t=require("./chunk-PK6SKIKE.cjs");function u(e){return e&&e.__esModule?e:{default:e}}var i=u(require("node:fs/promises")),s=t.__name((t,u,s)=>{t.onLoad({filter:/\.[cm]?ts?$/,namespace:"file"},async t=>{if(!(await i.default.readFile(t.path,"utf8")).includes(r.virtualModuleId))return;const a=await e.findFiles(u);return s.debug("[esbuild] typedefs importer watch",{importer:t.path,graphqlCount:a.length}),{watchFiles:a}})},"esbuildSetup");exports.esbuildSetup=s;//# sourceMappingURL=chunk-FQOZ54DK.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/esbuild/esbuildSetup.ts"],"names":["__name","fs","virtualModuleId","findFiles"],"mappings":"wTAOO,IAAM,YAAA,mBAAeA,wBAAA,CAAA,CAAC,KAAA,EAAoB,OAAA,EAA0B,MAAA,KAAoB;AAC7F,EAAA,KAAA,CAAM,MAAA,CAAO,EAAE,MAAA,EAAQ,aAAA,EAAe,WAAW,MAAA,EAAO,EAAG,OAAO,IAAA,KAAS;AACzE,IAAA,MAAM,WAAW,MAAMC,mBAAA,CAAG,QAAA,CAAS,IAAA,CAAK,MAAM,MAAM,CAAA;AAGpD,IAAA,IAAI,CAAC,QAAA,CAAS,QAAA,CAASC,iCAAe,CAAA,EAAG;AACvC,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,MAAMC,2BAAA,CAAU,OAAO,CAAA;AAE5C,IAAA,MAAA,CAAO,MAAM,mCAAA,EAAqC;AAAA,MAChD,UAAU,IAAA,CAAK,IAAA;AAAA,MACf,cAAc,YAAA,CAAa;AAAA,KAC5B,CAAA;AAED,IAAA,OAAO;AAAA,MACL,UAAA,EAAY;AAAA,KACd;AAAA,EACF,CAAC,CAAA;AACH,CAAA,EApB4B,cAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/esbuild/esbuildSetup.ts"],"names":["__name","fs","virtualModuleId","findFiles"],"mappings":"wTAOO,IAAM,YAAA,mBAAeA,wBAAA,CAAA,CAAC,KAAA,EAAoB,OAAA,EAA0B,MAAA,KAAoB;AAC7F,EAAA,KAAA,CAAM,MAAA,CAAO,EAAE,MAAA,EAAQ,aAAA,EAAe,WAAW,MAAA,EAAO,EAAG,OAAO,IAAA,KAAS;AACzE,IAAA,MAAM,WAAW,MAAMC,mBAAA,CAAG,QAAA,CAAS,IAAA,CAAK,MAAM,MAAM,CAAA;AAGpD,IAAA,IAAI,CAAC,QAAA,CAAS,QAAA,CAASC,iCAAe,CAAA,EAAG;AACvC,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,MAAMC,2BAAA,CAAU,OAAO,CAAA;AAE5C,IAAA,MAAA,CAAO,MAAM,mCAAA,EAAqC;AAAA,MAChD,UAAU,IAAA,CAAK,IAAA;AAAA,MACf,cAAc,YAAA,CAAa;AAAA,KAC5B,CAAA;AAED,IAAA,OAAO;AAAA,MACL,UAAA,EAAY;AAAA,KACd;AAAA,EACF,CAAC,CAAA;AACH,CAAA,EApB4B,cAAA","file":"chunk-FQOZ54DK.cjs","sourcesContent":["import fs from 'node:fs/promises';\nimport type { PluginBuild } from 'esbuild';\nimport type { ILogger } from '../..';\nimport { virtualModuleId } from '../consts';\nimport { findFiles } from '../findFiles';\nimport type { ResolvedOptions } from '../types';\n\nexport const esbuildSetup = (build: PluginBuild, options: ResolvedOptions, logger: ILogger) => {\n build.onLoad({ filter: /\\.[cm]?ts?$/, namespace: 'file' }, async (args) => {\n const contents = await fs.readFile(args.path, 'utf8');\n\n // TODO: Is there a better way to detect which file imports this?\n if (!contents.includes(virtualModuleId)) {\n return;\n }\n\n const graphqlFiles = await findFiles(options);\n\n logger.debug('[esbuild] typedefs importer watch', {\n importer: args.path,\n graphqlCount: graphqlFiles.length,\n });\n\n return {\n watchFiles: graphqlFiles,\n };\n });\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-SBYZCLDA.cjs"),r=require("./chunk-NGM5FFVF.cjs"),c=require("./chunk-BQYHEGY5.cjs"),u=require("./chunk-ERAHB2TQ.cjs"),i=require("./chunk-EHVPGWC6.cjs"),s=require("./chunk-PK6SKIKE.cjs").__name(s=>{const t=c.resolveOptions(s),n=u.createLogger(t);n.debug({options:t});const a=e.createEsbuild(t,n),o=r.createVite(t,n);return i.createPlugin({esbuild:a,vite:o},t,n)},"graphqlPluginFactory");exports.graphqlPluginFactory=s;//# sourceMappingURL=chunk-IB546GT2.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/graphqlPluginFactory.ts"],"names":["resolveOptions","createLogger","createEsbuild","createVite","createPlugin"],"mappings":";AAQO,IAAM,oBAAA,6CAAkD,YAAA,KAAkC;AAC/F,EAAA,MAAM,OAAA,GAAUA,iCAAe,YAAY,CAAA;AAC3C,EAAA,MAAM,MAAA,GAASC,+BAAa,OAAO,CAAA;AAEnC,EAAA,MAAA,CAAO,KAAA,CAAM,EAAE,OAAA,EAAS,CAAA;AAExB,EAAA,MAAM,OAAA,GAAUC,+BAAA,CAAc,OAAA,EAAS,MAAM,CAAA;AAC7C,EAAA,MAAM,IAAA,GAAOC,4BAAA,CAAW,OAAA,EAAS,MAAM,CAAA;AACvC,EAAA,OAAOC,+BAAa,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,SAAS,MAAM,CAAA;AACxD,CAAA,EAT8D,sBAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/graphqlPluginFactory.ts"],"names":["resolveOptions","createLogger","createEsbuild","createVite","createPlugin"],"mappings":";AAQO,IAAM,oBAAA,6CAAkD,YAAA,KAAkC;AAC/F,EAAA,MAAM,OAAA,GAAUA,iCAAe,YAAY,CAAA;AAC3C,EAAA,MAAM,MAAA,GAASC,+BAAa,OAAO,CAAA;AAEnC,EAAA,MAAA,CAAO,KAAA,CAAM,EAAE,OAAA,EAAS,CAAA;AAExB,EAAA,MAAM,OAAA,GAAUC,+BAAA,CAAc,OAAA,EAAS,MAAM,CAAA;AAC7C,EAAA,MAAM,IAAA,GAAOC,4BAAA,CAAW,OAAA,EAAS,MAAM,CAAA;AACvC,EAAA,OAAOC,+BAAa,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,SAAS,MAAM,CAAA;AACxD,CAAA,EAT8D,sBAAA","file":"chunk-IB546GT2.cjs","sourcesContent":["import type { UnpluginFactory, UnpluginOptions } from 'unplugin';\nimport type { Options } from '../types';\nimport { createLogger } from './createLogger';\nimport { createPlugin } from './createPlugin';\nimport { createEsbuild } from './esbuild/createEsbuild';\nimport { resolveOptions } from './resolveOptions';\nimport { createVite } from './vite/createVite';\n\nexport const graphqlPluginFactory: UnpluginFactory<Options> = (inputOptions): UnpluginOptions => {\n const options = resolveOptions(inputOptions);\n const logger = createLogger(options);\n\n logger.debug({ options });\n\n const esbuild = createEsbuild(options, logger);\n const vite = createVite(options, logger);\n return createPlugin({ esbuild, vite }, options, logger);\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-Y5UUEGL7.cjs"),r=require("./chunk-6SLXEH4G.cjs"),t=require("./chunk-PK6SKIKE.cjs").__name((t,a)=>{if(t.features.VITE_HMR){if(!t.features.VITE_WATCH)throw new r.InvalidFeatureCombinationError("VITE_HMR","VITE_WATCH");return a.debug("Creating Vite HMR handling"),{handleHotUpdate:e.handleHotUpdate}}},"createVite");exports.createVite=t;//# sourceMappingURL=chunk-NGM5FFVF.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/vite/createVite.ts"],"names":["__name","InvalidFeatureCombinationError","handleHotUpdate"],"mappings":";AAOO,IAAM,UAAA,mBAAaA,wBAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAA6C;AAChG,EAAA,IAAI,OAAA,CAAQ,kCAAwB,EAAG;AACrC,IAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAA,YAAA,iBAA0B,EAAG;AACxC,MAAA,MAAM,IAAIC,gDAAA,CAAA,UAAA,gBAAA,YAAA,iBAAiE;AAAA,IAC7E;AACA,IAAA,MAAA,CAAO,MAAM,4BAA4B,CAAA;AACzC,IAAA,OAAO;AAAA,uBACLC;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAX0B,YAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/vite/createVite.ts"],"names":["__name","InvalidFeatureCombinationError","handleHotUpdate"],"mappings":";AAOO,IAAM,UAAA,mBAAaA,wBAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAA6C;AAChG,EAAA,IAAI,OAAA,CAAQ,kCAAwB,EAAG;AACrC,IAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAA,YAAA,iBAA0B,EAAG;AACxC,MAAA,MAAM,IAAIC,gDAAA,CAAA,UAAA,gBAAA,YAAA,iBAAiE;AAAA,IAC7E;AACA,IAAA,MAAA,CAAO,MAAM,4BAA4B,CAAA;AACzC,IAAA,OAAO;AAAA,uBACLC;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAX0B,YAAA","file":"chunk-NGM5FFVF.cjs","sourcesContent":["import type { UnpluginOptions } from 'unplugin';\nimport { Feature } from '../../enums';\nimport { InvalidFeatureCombinationError } from '../../errors/InvalidFeatureCombinationError';\nimport type { ILogger } from '../../types';\nimport type { ResolvedOptions } from '../types';\nimport { handleHotUpdate } from './viteHotUpdate';\n\nexport const createVite = (options: ResolvedOptions, logger: ILogger): UnpluginOptions['vite'] => {\n if (options.features[Feature.ViteHmr]) {\n if (!options.features[Feature.ViteWatch]) {\n throw new InvalidFeatureCombinationError(Feature.ViteHmr, Feature.ViteWatch);\n }\n logger.debug('Creating Vite HMR handling');\n return {\n handleHotUpdate,\n };\n }\n return undefined;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";exports.pluginName="unplugin-graphql",exports.virtualModuleId="@shellicar/build-graphql/typedefs";//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";exports.pluginName="unplugin-graphql",exports.virtualModuleId="@shellicar/build-graphql/typedefs";//# sourceMappingURL=chunk-QJ4ULDT5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../package.json","../../src/core/consts.ts"],"names":[],"mappings":";AACE,IAAA,IAAA,GAAQ,0BAAA;;;ACCV,IAAM,eAAA,GAAkB,UAAA;AAEjB,IAAM,eAAA,GAAkB,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,eAAe,CAAA;AAElD,IAAM,UAAA,GAAa","file":"chunk-QJ4ULDT5.cjs","sourcesContent":["{\n \"name\": \"@shellicar/build-graphql\",\n \"private\": false,\n \"version\": \"1.4.3\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Stephen Hellicar\",\n \"description\": \"Build plugin that loads GraphQL files and makes them importable via a virtual typedefs module.\",\n \"keywords\": [\n \"build\",\n \"plugin\",\n \"graphql\",\n \"esbuild\",\n \"vite\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/shellicar/build-graphql.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/shellicar/build-graphql/issues\"\n },\n \"homepage\": \"https://github.com/shellicar/build-graphql#readme\",\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.ts\",\n \"default\": \"./dist/esm/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n },\n \"./astro\": {\n \"import\": {\n \"types\": \"./dist/esm/astro.d.ts\",\n \"default\": \"./dist/esm/astro.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/astro.d.cts\",\n \"default\": \"./dist/cjs/astro.cjs\"\n }\n },\n \"./rspack\": {\n \"import\": {\n \"types\": \"./dist/esm/rspack.d.ts\",\n \"default\": \"./dist/esm/rspack.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/rspack.d.cts\",\n \"default\": \"./dist/cjs/rspack.cjs\"\n }\n },\n \"./vite\": {\n \"import\": {\n \"types\": \"./dist/esm/vite.d.ts\",\n \"default\": \"./dist/esm/vite.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/vite.d.cts\",\n \"default\": \"./dist/cjs/vite.cjs\"\n }\n },\n \"./webpack\": {\n \"import\": {\n \"types\": \"./dist/esm/webpack.d.ts\",\n \"default\": \"./dist/esm/webpack.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/webpack.d.cts\",\n \"default\": \"./dist/cjs/webpack.cjs\"\n }\n },\n \"./rollup\": {\n \"import\": {\n \"types\": \"./dist/esm/rollup.d.ts\",\n \"default\": \"./dist/esm/rollup.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/rollup.d.cts\",\n \"default\": \"./dist/cjs/rollup.cjs\"\n }\n },\n \"./esbuild\": {\n \"import\": {\n \"types\": \"./dist/esm/esbuild.d.ts\",\n \"default\": \"./dist/esm/esbuild.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/esbuild.d.cts\",\n \"default\": \"./dist/cjs/esbuild.cjs\"\n }\n },\n \"./nuxt\": {\n \"import\": {\n \"types\": \"./dist/esm/nuxt.d.ts\",\n \"default\": \"./dist/esm/nuxt.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/nuxt.d.cts\",\n \"default\": \"./dist/cjs/nuxt.cjs\"\n }\n },\n \"./farm\": {\n \"import\": {\n \"types\": \"./dist/esm/farm.d.ts\",\n \"default\": \"./dist/esm/farm.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/farm.d.cts\",\n \"default\": \"./dist/cjs/farm.cjs\"\n }\n },\n \"./types\": {\n \"import\": {\n \"types\": \"./dist/esm/types.d.ts\",\n \"default\": \"./dist/esm/types.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/types.d.cts\",\n \"default\": \"./dist/cjs/types.cjs\"\n }\n },\n \"./graphql\": {\n \"import\": {\n \"types\": \"./dist/esm/core/graphql.d.ts\",\n \"default\": \"./dist/esm/core/graphql.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/core/graphql.d.cts\",\n \"default\": \"./dist/cjs/core/graphql.cjs\"\n }\n },\n \"./typedefs\": {\n \"import\": {\n \"types\": \"./dist/esm/core/typedefs.d.ts\",\n \"default\": \"./dist/esm/core/typedefs.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/core/typedefs.d.cts\",\n \"default\": \"./dist/cjs/core/typedefs.cjs\"\n }\n }\n },\n \"main\": \"./dist/cjs/index.cjs\",\n \"module\": \"./dist/esm/index.js\",\n \"types\": \"./dist/esm/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"astro\": [\n \"./dist/esm/astro.d.ts\"\n ],\n \"rspack\": [\n \"./dist/esm/rspack.d.ts\"\n ],\n \"vite\": [\n \"./dist/esm/vite.d.ts\"\n ],\n \"webpack\": [\n \"./dist/esm/webpack.d.ts\"\n ],\n \"rollup\": [\n \"./dist/esm/rollup.d.ts\"\n ],\n \"esbuild\": [\n \"./dist/esm/esbuild.d.ts\"\n ],\n \"nuxt\": [\n \"./dist/esm/nuxt.d.ts\"\n ],\n \"farm\": [\n \"./dist/esm/farm.d.ts\"\n ],\n \"types\": [\n \"./dist/esm/types.d.ts\"\n ],\n \"typedefs\": [\n \"./dist/esm/core/typedefs.d.ts\"\n ],\n \"index\": [\n \"./dist/esm/index.d.ts\"\n ]\n }\n },\n \"files\": [\n \"dist\",\n \"*.md\"\n ],\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"type-check\": \"tsc -p tsconfig.check.json\",\n \"test\": \"vitest run\"\n },\n \"peerDependencies\": {\n \"@farmfe/core\": \">=1\",\n \"@nuxt/kit\": \"^4\",\n \"@nuxt/schema\": \"^4\",\n \"esbuild\": \"*\",\n \"rollup\": \"^4\",\n \"vite\": \"^7\",\n \"webpack\": \"^4 || ^5\"\n },\n \"peerDependenciesMeta\": {\n \"@farmfe/core\": {\n \"optional\": true\n },\n \"@nuxt/kit\": {\n \"optional\": true\n },\n \"@nuxt/schema\": {\n \"optional\": true\n },\n \"esbuild\": {\n \"optional\": true\n },\n \"rollup\": {\n \"optional\": true\n },\n \"vite\": {\n \"optional\": true\n },\n \"webpack\": {\n \"optional\": true\n }\n },\n \"devDependencies\": {\n \"@luckycatfactory/esbuild-graphql-loader\": \"^3.8.1\",\n \"@nuxt/kit\": \"^4.3.1\",\n \"@nuxt/schema\": \"^4.3.1\",\n \"@shellicar/build-clean\": \"^1.2.3\",\n \"@tsconfig/node20\": \"^20.1.9\",\n \"@types/node\": \"^25.3.2\",\n \"graphql\": \"^16.13.0\",\n \"npm-check-updates\": \"^19.6.3\",\n \"npm-run-all2\": \"^8.0.4\",\n \"rollup\": \"^4.59.0\",\n \"terser\": \"^5.46.0\",\n \"tsup\": \"^8.5.1\",\n \"vite\": \"^7.3.1\",\n \"vitest\": \"^4.0.18\",\n \"webpack\": \"^5.105.3\"\n },\n \"dependencies\": {\n \"glob\": \"^13.0.6\",\n \"unplugin\": \"^3.0.0\"\n }\n}\n","import { name } from '../../package.json';\n\nconst exportSpecifier = 'typedefs';\n\nexport const virtualModuleId = `${name}/${exportSpecifier}`;\n\nexport const pluginName = 'unplugin-graphql';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-FQOZ54DK.cjs"),u=require("./chunk-PK6SKIKE.cjs"),r=u.__name((r,s)=>{if(r.features.ESBUILD_WATCH)return s.debug("Creating ESBuild setup"),{setup:u.__name(u=>e.esbuildSetup(u,r,s),"setup")}},"createEsbuild");exports.createEsbuild=r;//# sourceMappingURL=chunk-SBYZCLDA.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/esbuild/createEsbuild.ts"],"names":["__name","esbuildSetup"],"mappings":";AAOO,IAAM,aAAA,mBAAgBA,wBAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAAgD;AACtG,EAAA,IAAI,OAAA,CAAQ,4CAA6B,EAAG;AAC1C,IAAA,MAAA,CAAO,MAAM,wBAAwB,CAAA;AACrC,IAAA,OAAO;AAAA,MACL,uBAAOA,wBAAA,CAAA,CAAC,KAAA,KAAuBC,+BAAa,KAAA,EAAO,OAAA,EAAS,MAAM,CAAA,EAA3D,OAAA;AAAA,KACT;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAR6B,eAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/esbuild/createEsbuild.ts"],"names":["__name","esbuildSetup"],"mappings":";AAOO,IAAM,aAAA,mBAAgBA,wBAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAAgD;AACtG,EAAA,IAAI,OAAA,CAAQ,4CAA6B,EAAG;AAC1C,IAAA,MAAA,CAAO,MAAM,wBAAwB,CAAA;AACrC,IAAA,OAAO;AAAA,MACL,uBAAOA,wBAAA,CAAA,CAAC,KAAA,KAAuBC,+BAAa,KAAA,EAAO,OAAA,EAAS,MAAM,CAAA,EAA3D,OAAA;AAAA,KACT;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAR6B,eAAA","file":"chunk-SBYZCLDA.cjs","sourcesContent":["import type { PluginBuild } from 'esbuild';\nimport type { UnpluginOptions } from 'unplugin';\nimport { Feature } from '../../enums';\nimport type { ILogger } from '../../types';\nimport type { ResolvedOptions } from '../types';\nimport { esbuildSetup } from './esbuildSetup';\n\nexport const createEsbuild = (options: ResolvedOptions, logger: ILogger): UnpluginOptions['esbuild'] => {\n if (options.features[Feature.EsbuildWatch]) {\n logger.debug('Creating ESBuild setup');\n return {\n setup: (build: PluginBuild) => esbuildSetup(build, options, logger),\n };\n }\n return undefined;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-GLONE37I.cjs"),r=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-GLONE37I.cjs"),r=require("./chunk-QJ4ULDT5.cjs"),l=require("./chunk-PK6SKIKE.cjs").__name(async l=>{const{file:u,server:d}=l;if(!u.endsWith(".graphql"))return;const t=d.moduleGraph.getModuleById(`\0${u}`);null!=t&&d.moduleGraph.invalidateModule(t);const a=d.moduleGraph.getModuleById(e.resolveVirtualId(r.virtualModuleId));return null!=a?(d.moduleGraph.invalidateModule(a),[a]):[]},"handleHotUpdate");exports.handleHotUpdate=l;//# sourceMappingURL=chunk-Y5UUEGL7.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/vite/viteHotUpdate.ts"],"names":["resolveVirtualId","virtualModuleId"],"mappings":";AAUO,IAAM,eAAA,mDAAyB,GAAA,KAAuD;AAC3F,EAAA,MAAM,EAAE,IAAA,EAAM,MAAA,EAAO,GAAI,GAAA;AACzB,EAAA,IAAI,CAAC,IAAA,CAAK,QAAA,CAAS,UAAU,CAAA,EAAG;AAC9B,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,CAAA,EAAA,EAAK,IAAI,CAAA,CAAE,CAAA;AAC3D,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,MAAM,CAAA;AAAA,EAC5C;AAEA,EAAA,MAAM,cAAc,MAAA,CAAO,WAAA,CAAY,aAAA,CAAcA,kCAAA,CAAiBC,iCAAe,CAAC,CAAA;AACtF,EAAA,IAAI,eAAe,IAAA,EAAM;AACvB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,WAAW,CAAA;AAC/C,IAAA,OAAO,CAAC,WAAW,CAAA;AAAA,EACrB;AAEA,EAAA,OAAO,EAAC;AACV,CAAA,EAlB+B,iBAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/vite/viteHotUpdate.ts"],"names":["resolveVirtualId","virtualModuleId"],"mappings":";AAUO,IAAM,eAAA,mDAAyB,GAAA,KAAuD;AAC3F,EAAA,MAAM,EAAE,IAAA,EAAM,MAAA,EAAO,GAAI,GAAA;AACzB,EAAA,IAAI,CAAC,IAAA,CAAK,QAAA,CAAS,UAAU,CAAA,EAAG;AAC9B,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,CAAA,EAAA,EAAK,IAAI,CAAA,CAAE,CAAA;AAC3D,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,MAAM,CAAA;AAAA,EAC5C;AAEA,EAAA,MAAM,cAAc,MAAA,CAAO,WAAA,CAAY,aAAA,CAAcA,kCAAA,CAAiBC,iCAAe,CAAC,CAAA;AACtF,EAAA,IAAI,eAAe,IAAA,EAAM;AACvB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,WAAW,CAAA;AAC/C,IAAA,OAAO,CAAC,WAAW,CAAA;AAAA,EACrB;AAEA,EAAA,OAAO,EAAC;AACV,CAAA,EAlB+B,iBAAA","file":"chunk-Y5UUEGL7.cjs","sourcesContent":["import type { ViteDevServer } from 'vite';\nimport { virtualModuleId } from '../consts';\nimport { resolveVirtualId } from '../resolveVirtualId';\n\ntype ModuleGraph = Pick<ViteDevServer, 'moduleGraph'>['moduleGraph'];\n\ntype DevServerDependency = {\n moduleGraph: Pick<ModuleGraph, 'getModuleById' | 'invalidateModule'>;\n};\n\nexport const handleHotUpdate = async (ctx: { file: string; server: DevServerDependency }) => {\n const { file, server } = ctx;\n if (!file.endsWith('.graphql')) {\n return;\n }\n\n const gqlMod = server.moduleGraph.getModuleById(`\\0${file}`);\n if (gqlMod != null) {\n server.moduleGraph.invalidateModule(gqlMod);\n }\n\n const typedefsMod = server.moduleGraph.getModuleById(resolveVirtualId(virtualModuleId));\n if (typedefsMod != null) {\n server.moduleGraph.invalidateModule(typedefsMod);\n return [typedefsMod];\n }\n\n return [];\n};\n"]}
|
package/dist/cjs/core/consts.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-QJ4ULDT5.cjs");require("../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"pluginName",{enumerable:!0,get:function(){return e.pluginName}}),Object.defineProperty(exports,"virtualModuleId",{enumerable:!0,get:function(){return e.virtualModuleId}});//# sourceMappingURL=consts.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-EHVPGWC6.cjs");require("../chunk-UBVX77VS.cjs"),require("../chunk-R464AKCE.cjs"),require("../chunk-ILEJETM4.cjs"),require("../chunk-25M4NGVS.cjs"),require("../chunk-AP6IQLKS.cjs"),require("../chunk-7YGQF7U2.cjs"),require("../chunk-EI2EMLQX.cjs"),require("../chunk-2J3SQW7Q.cjs"),require("../chunk-BIQSJSAS.cjs"),require("../chunk-A32FJOX6.cjs"),require("../chunk-GLONE37I.cjs"),require("../chunk-QJ4ULDT5.cjs"),require("../chunk-RXCLMMYV.cjs"),require("../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"createPlugin",{enumerable:!0,get:function(){return e.createPlugin}});//# sourceMappingURL=createPlugin.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../chunk-
|
|
1
|
+
"use strict";var e=require("../../chunk-SBYZCLDA.cjs");require("../../chunk-FQOZ54DK.cjs"),require("../../chunk-AP6IQLKS.cjs"),require("../../chunk-QJ4ULDT5.cjs"),require("../../chunk-RXCLMMYV.cjs"),require("../../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"createEsbuild",{enumerable:!0,get:function(){return e.createEsbuild}});//# sourceMappingURL=createEsbuild.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../chunk-
|
|
1
|
+
"use strict";var e=require("../../chunk-FQOZ54DK.cjs");require("../../chunk-AP6IQLKS.cjs"),require("../../chunk-QJ4ULDT5.cjs"),require("../../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"esbuildSetup",{enumerable:!0,get:function(){return e.esbuildSetup}});//# sourceMappingURL=esbuildSetup.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../chunk-
|
|
1
|
+
"use strict";var r=require("../chunk-IB546GT2.cjs");require("../chunk-SBYZCLDA.cjs"),require("../chunk-FQOZ54DK.cjs"),require("../chunk-NGM5FFVF.cjs"),require("../chunk-Y5UUEGL7.cjs"),require("../chunk-6SLXEH4G.cjs"),require("../chunk-BQYHEGY5.cjs"),require("../chunk-3RYWHB5P.cjs"),require("../chunk-HX35SGMR.cjs"),require("../chunk-ERAHB2TQ.cjs"),require("../chunk-EHVPGWC6.cjs"),require("../chunk-UBVX77VS.cjs"),require("../chunk-R464AKCE.cjs"),require("../chunk-ILEJETM4.cjs"),require("../chunk-25M4NGVS.cjs"),require("../chunk-AP6IQLKS.cjs"),require("../chunk-7YGQF7U2.cjs"),require("../chunk-EI2EMLQX.cjs"),require("../chunk-2J3SQW7Q.cjs"),require("../chunk-BIQSJSAS.cjs"),require("../chunk-A32FJOX6.cjs"),require("../chunk-GLONE37I.cjs"),require("../chunk-QJ4ULDT5.cjs"),require("../chunk-FVXDIYGC.cjs"),require("../chunk-RXCLMMYV.cjs"),require("../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"graphqlPluginFactory",{enumerable:!0,get:function(){return r.graphqlPluginFactory}});//# sourceMappingURL=graphqlPluginFactory.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("../chunk-
|
|
1
|
+
"use strict";var r=require("../chunk-7YGQF7U2.cjs");require("../chunk-EI2EMLQX.cjs"),require("../chunk-2J3SQW7Q.cjs"),require("../chunk-BIQSJSAS.cjs"),require("../chunk-A32FJOX6.cjs"),require("../chunk-QJ4ULDT5.cjs"),require("../chunk-RXCLMMYV.cjs"),require("../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"handleErrors",{enumerable:!0,get:function(){return r.handleErrors}});//# sourceMappingURL=handleErrors.cjs.map
|
package/dist/cjs/core/plugin.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../chunk-
|
|
1
|
+
"use strict";var e=require("../chunk-7RM5UF5F.cjs");require("../chunk-IB546GT2.cjs"),require("../chunk-SBYZCLDA.cjs"),require("../chunk-FQOZ54DK.cjs"),require("../chunk-NGM5FFVF.cjs"),require("../chunk-Y5UUEGL7.cjs"),require("../chunk-6SLXEH4G.cjs"),require("../chunk-BQYHEGY5.cjs"),require("../chunk-3RYWHB5P.cjs"),require("../chunk-HX35SGMR.cjs"),require("../chunk-ERAHB2TQ.cjs"),require("../chunk-EHVPGWC6.cjs"),require("../chunk-UBVX77VS.cjs"),require("../chunk-R464AKCE.cjs"),require("../chunk-ILEJETM4.cjs"),require("../chunk-25M4NGVS.cjs"),require("../chunk-AP6IQLKS.cjs"),require("../chunk-7YGQF7U2.cjs"),require("../chunk-EI2EMLQX.cjs"),require("../chunk-2J3SQW7Q.cjs"),require("../chunk-BIQSJSAS.cjs"),require("../chunk-A32FJOX6.cjs"),require("../chunk-GLONE37I.cjs"),require("../chunk-QJ4ULDT5.cjs"),require("../chunk-FVXDIYGC.cjs"),require("../chunk-RXCLMMYV.cjs"),require("../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"plugin",{enumerable:!0,get:function(){return e.plugin}});//# sourceMappingURL=plugin.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../chunk-
|
|
1
|
+
"use strict";var e=require("../../chunk-NGM5FFVF.cjs");require("../../chunk-Y5UUEGL7.cjs"),require("../../chunk-6SLXEH4G.cjs"),require("../../chunk-GLONE37I.cjs"),require("../../chunk-QJ4ULDT5.cjs"),require("../../chunk-RXCLMMYV.cjs"),require("../../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"createVite",{enumerable:!0,get:function(){return e.createVite}});//# sourceMappingURL=createVite.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../../chunk-
|
|
1
|
+
"use strict";var e=require("../../chunk-Y5UUEGL7.cjs");require("../../chunk-GLONE37I.cjs"),require("../../chunk-QJ4ULDT5.cjs"),require("../../chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"handleHotUpdate",{enumerable:!0,get:function(){return e.handleHotUpdate}});//# sourceMappingURL=viteHotUpdate.cjs.map
|
package/dist/cjs/esbuild.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var r=e.plugin.esbuild;module.exports=r;//# sourceMappingURL=esbuild.cjs.map
|
package/dist/cjs/farm.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var e=r.plugin.farm;module.exports=e;//# sourceMappingURL=farm.cjs.map
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./chunk-7357H5WK.cjs"),require("./chunk-QMDQA5JZ.cjs");var r=require("./chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./chunk-7357H5WK.cjs"),require("./chunk-QMDQA5JZ.cjs");var r=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs");var e=require("./chunk-6SLXEH4G.cjs");require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs");var u=require("./chunk-EI2EMLQX.cjs"),n=require("./chunk-2J3SQW7Q.cjs"),c=require("./chunk-BIQSJSAS.cjs"),i=require("./chunk-A32FJOX6.cjs");require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs");var t=require("./chunk-RXCLMMYV.cjs");require("./chunk-PK6SKIKE.cjs"),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return r.plugin}}),Object.defineProperty(exports,"InvalidFeatureCombinationError",{enumerable:!0,get:function(){return e.InvalidFeatureCombinationError}}),Object.defineProperty(exports,"GraphQLLoadNoFilesError",{enumerable:!0,get:function(){return u.GraphQLLoadNoFilesError}}),Object.defineProperty(exports,"GraphQLLoadPartialImportError",{enumerable:!0,get:function(){return n.GraphQLLoadPartialImportError}}),Object.defineProperty(exports,"GraphQLLoadTypedefsMissingError",{enumerable:!0,get:function(){return c.GraphQLLoadTypedefsMissingError}}),Object.defineProperty(exports,"GraphQLLoadError",{enumerable:!0,get:function(){return i.GraphQLLoadError}}),Object.defineProperty(exports,"ErrorPolicy",{enumerable:!0,get:function(){return t.ErrorPolicy}}),Object.defineProperty(exports,"Feature",{enumerable:!0,get:function(){return t.Feature}});//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/nuxt.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("./chunk-7357H5WK.cjs"),require("./chunk-QMDQA5JZ.cjs");var e=require("./chunk-
|
|
1
|
+
"use strict";require("./chunk-7357H5WK.cjs"),require("./chunk-QMDQA5JZ.cjs");var e=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs"),require("@nuxt/schema");var u=require("@nuxt/kit"),r=u.defineNuxtModule({meta:{name:"nuxt-build-graphql",configKey:"buildGraphql"},setup(r){u.addWebpackPlugin(e.plugin.webpack(r)),u.addVitePlugin(e.plugin.vite(r))}});module.exports=r;//# sourceMappingURL=nuxt.cjs.map
|
package/dist/cjs/rolldown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var e=r.plugin.rolldown;module.exports=e;//# sourceMappingURL=rolldown.cjs.map
|
package/dist/cjs/rollup.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var u=r.plugin.rollup;module.exports=u;//# sourceMappingURL=rollup.cjs.map
|
package/dist/cjs/rspack.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-
|
|
1
|
+
"use strict";var r=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var e=r.plugin.rspack;module.exports=e;//# sourceMappingURL=rspack.cjs.map
|
package/dist/cjs/vite.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var r=e.plugin.vite;module.exports=r;//# sourceMappingURL=vite.cjs.map
|
package/dist/cjs/webpack.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./chunk-
|
|
1
|
+
"use strict";var e=require("./chunk-7RM5UF5F.cjs");require("./chunk-IB546GT2.cjs"),require("./chunk-SBYZCLDA.cjs"),require("./chunk-FQOZ54DK.cjs"),require("./chunk-NGM5FFVF.cjs"),require("./chunk-Y5UUEGL7.cjs"),require("./chunk-6SLXEH4G.cjs"),require("./chunk-BQYHEGY5.cjs"),require("./chunk-3RYWHB5P.cjs"),require("./chunk-HX35SGMR.cjs"),require("./chunk-ERAHB2TQ.cjs"),require("./chunk-EHVPGWC6.cjs"),require("./chunk-UBVX77VS.cjs"),require("./chunk-R464AKCE.cjs"),require("./chunk-ILEJETM4.cjs"),require("./chunk-25M4NGVS.cjs"),require("./chunk-AP6IQLKS.cjs"),require("./chunk-7YGQF7U2.cjs"),require("./chunk-EI2EMLQX.cjs"),require("./chunk-2J3SQW7Q.cjs"),require("./chunk-BIQSJSAS.cjs"),require("./chunk-A32FJOX6.cjs"),require("./chunk-GLONE37I.cjs"),require("./chunk-QJ4ULDT5.cjs"),require("./chunk-FVXDIYGC.cjs"),require("./chunk-RXCLMMYV.cjs"),require("./chunk-PK6SKIKE.cjs");var r=e.plugin.webpack;module.exports=r;//# sourceMappingURL=webpack.cjs.map
|
package/dist/esm/astro.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as o}from"./chunk-
|
|
1
|
+
import{plugin as o}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import{__name as i}from"./chunk-7QVYU63E.js";var s=i(s=>({name:"build-graphql",hooks:{"astro:config:setup":i(async i=>{i.config.vite.plugins||=[],i.config.vite.plugins.push(o.vite(s))},"astro:config:setup")}}),"default");export{s as default};//# sourceMappingURL=astro.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{handleHotUpdate as e}from"./chunk-
|
|
1
|
+
import{handleHotUpdate as e}from"./chunk-XVKHWUNH.js";import{InvalidFeatureCombinationError as r}from"./chunk-YL5EDPH6.js";import{__name as t}from"./chunk-7QVYU63E.js";var i=t((t,i)=>{if(t.features.VITE_HMR){if(!t.features.VITE_WATCH)throw new r("VITE_HMR","VITE_WATCH");return i.debug("Creating Vite HMR handling"),{handleHotUpdate:e}}},"createVite");export{i as createVite};//# sourceMappingURL=chunk-AIWVOWWP.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/vite/createVite.ts"],"names":[],"mappings":";AAOO,IAAM,UAAA,mBAAa,MAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAA6C;AAChG,EAAA,IAAI,OAAA,CAAQ,kCAAwB,EAAG;AACrC,IAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAA,YAAA,iBAA0B,EAAG;AACxC,MAAA,MAAM,IAAI,8BAAA,CAAA,UAAA,gBAAA,YAAA,iBAAiE;AAAA,IAC7E;AACA,IAAA,MAAA,CAAO,MAAM,4BAA4B,CAAA;AACzC,IAAA,OAAO;AAAA,MACL;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAX0B,YAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/vite/createVite.ts"],"names":[],"mappings":";AAOO,IAAM,UAAA,mBAAa,MAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAA6C;AAChG,EAAA,IAAI,OAAA,CAAQ,kCAAwB,EAAG;AACrC,IAAA,IAAI,CAAC,OAAA,CAAQ,QAAA,CAAA,YAAA,iBAA0B,EAAG;AACxC,MAAA,MAAM,IAAI,8BAAA,CAAA,UAAA,gBAAA,YAAA,iBAAiE;AAAA,IAC7E;AACA,IAAA,MAAA,CAAO,MAAM,4BAA4B,CAAA;AACzC,IAAA,OAAO;AAAA,MACL;AAAA,KACF;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAX0B,YAAA","file":"chunk-AIWVOWWP.js","sourcesContent":["import type { UnpluginOptions } from 'unplugin';\nimport { Feature } from '../../enums';\nimport { InvalidFeatureCombinationError } from '../../errors/InvalidFeatureCombinationError';\nimport type { ILogger } from '../../types';\nimport type { ResolvedOptions } from '../types';\nimport { handleHotUpdate } from './viteHotUpdate';\n\nexport const createVite = (options: ResolvedOptions, logger: ILogger): UnpluginOptions['vite'] => {\n if (options.features[Feature.ViteHmr]) {\n if (!options.features[Feature.ViteWatch]) {\n throw new InvalidFeatureCombinationError(Feature.ViteHmr, Feature.ViteWatch);\n }\n logger.debug('Creating Vite HMR handling');\n return {\n handleHotUpdate,\n };\n }\n return undefined;\n};\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{graphqlPluginFactory as r}from"./chunk-HHQRI244.js";import{createUnplugin as o}from"unplugin";var m=o(r);export{m as plugin};//# sourceMappingURL=chunk-BP5YEWAE.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/plugin.ts"],"names":[],"mappings":"6FAGO,IAAM,MAAA,GAAS,eAAe,oBAAoB","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/plugin.ts"],"names":[],"mappings":"6FAGO,IAAM,MAAA,GAAS,eAAe,oBAAoB","file":"chunk-BP5YEWAE.js","sourcesContent":["import { createUnplugin } from 'unplugin';\nimport { graphqlPluginFactory } from './graphqlPluginFactory';\n\nexport const plugin = createUnplugin(graphqlPluginFactory);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createEsbuild as o}from"./chunk-
|
|
1
|
+
import{createEsbuild as o}from"./chunk-TVQMLG5G.js";import{createVite as r}from"./chunk-AIWVOWWP.js";import{resolveOptions as t}from"./chunk-X5KED3TP.js";import{createLogger as m}from"./chunk-LJWNT7NV.js";import{createPlugin as n}from"./chunk-KZLVSTJX.js";import{__name as i}from"./chunk-7QVYU63E.js";var s=i(i=>{const s=t(i),u=m(s);u.debug({options:s});const c=o(s,u),p=r(s,u);return n({esbuild:c,vite:p},s,u)},"graphqlPluginFactory");export{s as graphqlPluginFactory};//# sourceMappingURL=chunk-HHQRI244.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/graphqlPluginFactory.ts"],"names":[],"mappings":";AAQO,IAAM,oBAAA,2BAAkD,YAAA,KAAkC;AAC/F,EAAA,MAAM,OAAA,GAAU,eAAe,YAAY,CAAA;AAC3C,EAAA,MAAM,MAAA,GAAS,aAAa,OAAO,CAAA;AAEnC,EAAA,MAAA,CAAO,KAAA,CAAM,EAAE,OAAA,EAAS,CAAA;AAExB,EAAA,MAAM,OAAA,GAAU,aAAA,CAAc,OAAA,EAAS,MAAM,CAAA;AAC7C,EAAA,MAAM,IAAA,GAAO,UAAA,CAAW,OAAA,EAAS,MAAM,CAAA;AACvC,EAAA,OAAO,aAAa,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,SAAS,MAAM,CAAA;AACxD,CAAA,EAT8D,sBAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/graphqlPluginFactory.ts"],"names":[],"mappings":";AAQO,IAAM,oBAAA,2BAAkD,YAAA,KAAkC;AAC/F,EAAA,MAAM,OAAA,GAAU,eAAe,YAAY,CAAA;AAC3C,EAAA,MAAM,MAAA,GAAS,aAAa,OAAO,CAAA;AAEnC,EAAA,MAAA,CAAO,KAAA,CAAM,EAAE,OAAA,EAAS,CAAA;AAExB,EAAA,MAAM,OAAA,GAAU,aAAA,CAAc,OAAA,EAAS,MAAM,CAAA;AAC7C,EAAA,MAAM,IAAA,GAAO,UAAA,CAAW,OAAA,EAAS,MAAM,CAAA;AACvC,EAAA,OAAO,aAAa,EAAE,OAAA,EAAS,IAAA,EAAK,EAAG,SAAS,MAAM,CAAA;AACxD,CAAA,EAT8D,sBAAA","file":"chunk-HHQRI244.js","sourcesContent":["import type { UnpluginFactory, UnpluginOptions } from 'unplugin';\nimport type { Options } from '../types';\nimport { createLogger } from './createLogger';\nimport { createPlugin } from './createPlugin';\nimport { createEsbuild } from './esbuild/createEsbuild';\nimport { resolveOptions } from './resolveOptions';\nimport { createVite } from './vite/createVite';\n\nexport const graphqlPluginFactory: UnpluginFactory<Options> = (inputOptions): UnpluginOptions => {\n const options = resolveOptions(inputOptions);\n const logger = createLogger(options);\n\n logger.debug({ options });\n\n const esbuild = createEsbuild(options, logger);\n const vite = createVite(options, logger);\n return createPlugin({ esbuild, vite }, options, logger);\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var l="@shellicar/build-graphql/typedefs",p="unplugin-graphql";export{p as pluginName,l as virtualModuleId};//# sourceMappingURL=chunk-
|
|
1
|
+
var l="@shellicar/build-graphql/typedefs",p="unplugin-graphql";export{p as pluginName,l as virtualModuleId};//# sourceMappingURL=chunk-IWP2M6U6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../package.json","../../src/core/consts.ts"],"names":[],"mappings":";AACE,IAAA,IAAA,GAAQ,0BAAA;;;ACCV,IAAM,eAAA,GAAkB,UAAA;AAEjB,IAAM,eAAA,GAAkB,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,eAAe,CAAA;AAElD,IAAM,UAAA,GAAa","file":"chunk-IWP2M6U6.js","sourcesContent":["{\n \"name\": \"@shellicar/build-graphql\",\n \"private\": false,\n \"version\": \"1.4.3\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Stephen Hellicar\",\n \"description\": \"Build plugin that loads GraphQL files and makes them importable via a virtual typedefs module.\",\n \"keywords\": [\n \"build\",\n \"plugin\",\n \"graphql\",\n \"esbuild\",\n \"vite\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/shellicar/build-graphql.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/shellicar/build-graphql/issues\"\n },\n \"homepage\": \"https://github.com/shellicar/build-graphql#readme\",\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"exports\": {\n \".\": {\n \"import\": {\n \"types\": \"./dist/esm/index.d.ts\",\n \"default\": \"./dist/esm/index.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n }\n },\n \"./astro\": {\n \"import\": {\n \"types\": \"./dist/esm/astro.d.ts\",\n \"default\": \"./dist/esm/astro.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/astro.d.cts\",\n \"default\": \"./dist/cjs/astro.cjs\"\n }\n },\n \"./rspack\": {\n \"import\": {\n \"types\": \"./dist/esm/rspack.d.ts\",\n \"default\": \"./dist/esm/rspack.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/rspack.d.cts\",\n \"default\": \"./dist/cjs/rspack.cjs\"\n }\n },\n \"./vite\": {\n \"import\": {\n \"types\": \"./dist/esm/vite.d.ts\",\n \"default\": \"./dist/esm/vite.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/vite.d.cts\",\n \"default\": \"./dist/cjs/vite.cjs\"\n }\n },\n \"./webpack\": {\n \"import\": {\n \"types\": \"./dist/esm/webpack.d.ts\",\n \"default\": \"./dist/esm/webpack.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/webpack.d.cts\",\n \"default\": \"./dist/cjs/webpack.cjs\"\n }\n },\n \"./rollup\": {\n \"import\": {\n \"types\": \"./dist/esm/rollup.d.ts\",\n \"default\": \"./dist/esm/rollup.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/rollup.d.cts\",\n \"default\": \"./dist/cjs/rollup.cjs\"\n }\n },\n \"./esbuild\": {\n \"import\": {\n \"types\": \"./dist/esm/esbuild.d.ts\",\n \"default\": \"./dist/esm/esbuild.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/esbuild.d.cts\",\n \"default\": \"./dist/cjs/esbuild.cjs\"\n }\n },\n \"./nuxt\": {\n \"import\": {\n \"types\": \"./dist/esm/nuxt.d.ts\",\n \"default\": \"./dist/esm/nuxt.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/nuxt.d.cts\",\n \"default\": \"./dist/cjs/nuxt.cjs\"\n }\n },\n \"./farm\": {\n \"import\": {\n \"types\": \"./dist/esm/farm.d.ts\",\n \"default\": \"./dist/esm/farm.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/farm.d.cts\",\n \"default\": \"./dist/cjs/farm.cjs\"\n }\n },\n \"./types\": {\n \"import\": {\n \"types\": \"./dist/esm/types.d.ts\",\n \"default\": \"./dist/esm/types.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/types.d.cts\",\n \"default\": \"./dist/cjs/types.cjs\"\n }\n },\n \"./graphql\": {\n \"import\": {\n \"types\": \"./dist/esm/core/graphql.d.ts\",\n \"default\": \"./dist/esm/core/graphql.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/core/graphql.d.cts\",\n \"default\": \"./dist/cjs/core/graphql.cjs\"\n }\n },\n \"./typedefs\": {\n \"import\": {\n \"types\": \"./dist/esm/core/typedefs.d.ts\",\n \"default\": \"./dist/esm/core/typedefs.js\"\n },\n \"require\": {\n \"types\": \"./dist/cjs/core/typedefs.d.cts\",\n \"default\": \"./dist/cjs/core/typedefs.cjs\"\n }\n }\n },\n \"main\": \"./dist/cjs/index.cjs\",\n \"module\": \"./dist/esm/index.js\",\n \"types\": \"./dist/esm/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"astro\": [\n \"./dist/esm/astro.d.ts\"\n ],\n \"rspack\": [\n \"./dist/esm/rspack.d.ts\"\n ],\n \"vite\": [\n \"./dist/esm/vite.d.ts\"\n ],\n \"webpack\": [\n \"./dist/esm/webpack.d.ts\"\n ],\n \"rollup\": [\n \"./dist/esm/rollup.d.ts\"\n ],\n \"esbuild\": [\n \"./dist/esm/esbuild.d.ts\"\n ],\n \"nuxt\": [\n \"./dist/esm/nuxt.d.ts\"\n ],\n \"farm\": [\n \"./dist/esm/farm.d.ts\"\n ],\n \"types\": [\n \"./dist/esm/types.d.ts\"\n ],\n \"typedefs\": [\n \"./dist/esm/core/typedefs.d.ts\"\n ],\n \"index\": [\n \"./dist/esm/index.d.ts\"\n ]\n }\n },\n \"files\": [\n \"dist\",\n \"*.md\"\n ],\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"type-check\": \"tsc -p tsconfig.check.json\",\n \"test\": \"vitest run\"\n },\n \"peerDependencies\": {\n \"@farmfe/core\": \">=1\",\n \"@nuxt/kit\": \"^4\",\n \"@nuxt/schema\": \"^4\",\n \"esbuild\": \"*\",\n \"rollup\": \"^4\",\n \"vite\": \"^7\",\n \"webpack\": \"^4 || ^5\"\n },\n \"peerDependenciesMeta\": {\n \"@farmfe/core\": {\n \"optional\": true\n },\n \"@nuxt/kit\": {\n \"optional\": true\n },\n \"@nuxt/schema\": {\n \"optional\": true\n },\n \"esbuild\": {\n \"optional\": true\n },\n \"rollup\": {\n \"optional\": true\n },\n \"vite\": {\n \"optional\": true\n },\n \"webpack\": {\n \"optional\": true\n }\n },\n \"devDependencies\": {\n \"@luckycatfactory/esbuild-graphql-loader\": \"^3.8.1\",\n \"@nuxt/kit\": \"^4.3.1\",\n \"@nuxt/schema\": \"^4.3.1\",\n \"@shellicar/build-clean\": \"^1.2.3\",\n \"@tsconfig/node20\": \"^20.1.9\",\n \"@types/node\": \"^25.3.2\",\n \"graphql\": \"^16.13.0\",\n \"npm-check-updates\": \"^19.6.3\",\n \"npm-run-all2\": \"^8.0.4\",\n \"rollup\": \"^4.59.0\",\n \"terser\": \"^5.46.0\",\n \"tsup\": \"^8.5.1\",\n \"vite\": \"^7.3.1\",\n \"vitest\": \"^4.0.18\",\n \"webpack\": \"^5.105.3\"\n },\n \"dependencies\": {\n \"glob\": \"^13.0.6\",\n \"unplugin\": \"^3.0.0\"\n }\n}\n","import { name } from '../../package.json';\n\nconst exportSpecifier = 'typedefs';\n\nexport const virtualModuleId = `${name}/${exportSpecifier}`;\n\nexport const pluginName = 'unplugin-graphql';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{GraphQLLoadNoFilesError as r}from"./chunk-YFT4EXJQ.js";import{GraphQLLoadPartialImportError as o}from"./chunk-LI63GOKC.js";import{GraphQLLoadTypedefsMissingError as e}from"./chunk-2GPV2I5J.js";import{virtualModuleId as t}from"./chunk-
|
|
1
|
+
import{GraphQLLoadNoFilesError as r}from"./chunk-YFT4EXJQ.js";import{GraphQLLoadPartialImportError as o}from"./chunk-LI63GOKC.js";import{GraphQLLoadTypedefsMissingError as e}from"./chunk-2GPV2I5J.js";import{virtualModuleId as t}from"./chunk-IWP2M6U6.js";import{__name as p}from"./chunk-7QVYU63E.js";var f={NO_FILES_MATCHED:"No GraphQL files found for the pattern",PARTIAL_IMPORT:"Some GraphQL files were not imported",TYPEDEFS_MISSING:`Typedefs not imported. Make sure to import from ${t}`};function i(t,p,{graphqlMatched:i,graphqlImports:h,importedTypedefs:m,globPattern:n}){if("IGNORE"!==t){if(0===i){if("ABORT"===t)throw new r(n);p.error(f.NO_FILES_MATCHED,{globPattern:n})}if(h!==i){if("ABORT"===t)throw new o(h,i);p.error(f.PARTIAL_IMPORT,{graphqlImports:h,graphqlMatched:i})}if(!m){if("ABORT"===t)throw new e;p.error(f.TYPEDEFS_MISSING)}}}p(i,"handleErrors");export{i as handleErrors};//# sourceMappingURL=chunk-JMXMDH5W.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/handleErrors.ts"],"names":[],"mappings":";AAcA,IAAM,SAAA,GAAY;AAAA,EAChB,gBAAA,EAAkB,wCAAA;AAAA,EAClB,cAAA,EAAgB,sCAAA;AAAA,EAChB,gBAAA,EAAkB,mDAAmD,eAAe,CAAA;AACtF,CAAA;AAEO,SAAS,YAAA,CAAa,aAA0B,MAAA,EAAiB,EAAE,gBAAgB,cAAA,EAAgB,gBAAA,EAAkB,aAAY,EAAwB;AAC9J,EAAA,IAAI,WAAA,KAAA,QAAA,eAAoC;AACtC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,mBAAmB,CAAA,EAAG;AACxB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,wBAAwB,WAAW,CAAA;AAAA,IAC/C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,SAAA,CAAU,gBAAA,EAAkB,EAAE,aAAa,CAAA;AAAA,EAC1D;AAEA,EAAA,IAAI,mBAAmB,cAAA,EAAgB;AACrC,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,6BAAA,CAA8B,cAAA,EAAgB,cAAc,CAAA;AAAA,IACxE;AACA,IAAA,MAAA,CAAO,MAAM,SAAA,CAAU,cAAA,EAAgB,EAAE,cAAA,EAAgB,gBAAgB,CAAA;AAAA,EAC3E;AAEA,EAAA,IAAI,CAAC,gBAAA,EAAkB;AACrB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,+BAAA,EAAgC;AAAA,IAC5C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,UAAU,gBAAgB,CAAA;AAAA,EACzC;AACF;AAzBgB,MAAA,CAAA,YAAA,EAAA,cAAA,CAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/handleErrors.ts"],"names":[],"mappings":";AAcA,IAAM,SAAA,GAAY;AAAA,EAChB,gBAAA,EAAkB,wCAAA;AAAA,EAClB,cAAA,EAAgB,sCAAA;AAAA,EAChB,gBAAA,EAAkB,mDAAmD,eAAe,CAAA;AACtF,CAAA;AAEO,SAAS,YAAA,CAAa,aAA0B,MAAA,EAAiB,EAAE,gBAAgB,cAAA,EAAgB,gBAAA,EAAkB,aAAY,EAAwB;AAC9J,EAAA,IAAI,WAAA,KAAA,QAAA,eAAoC;AACtC,IAAA;AAAA,EACF;AAEA,EAAA,IAAI,mBAAmB,CAAA,EAAG;AACxB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,wBAAwB,WAAW,CAAA;AAAA,IAC/C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,SAAA,CAAU,gBAAA,EAAkB,EAAE,aAAa,CAAA;AAAA,EAC1D;AAEA,EAAA,IAAI,mBAAmB,cAAA,EAAgB;AACrC,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,6BAAA,CAA8B,cAAA,EAAgB,cAAc,CAAA;AAAA,IACxE;AACA,IAAA,MAAA,CAAO,MAAM,SAAA,CAAU,cAAA,EAAgB,EAAE,cAAA,EAAgB,gBAAgB,CAAA;AAAA,EAC3E;AAEA,EAAA,IAAI,CAAC,gBAAA,EAAkB;AACrB,IAAA,IAAI,WAAA,KAAA,OAAA,cAAmC;AACrC,MAAA,MAAM,IAAI,+BAAA,EAAgC;AAAA,IAC5C;AACA,IAAA,MAAA,CAAO,KAAA,CAAM,UAAU,gBAAgB,CAAA;AAAA,EACzC;AACF;AAzBgB,MAAA,CAAA,YAAA,EAAA,cAAA,CAAA","file":"chunk-JMXMDH5W.js","sourcesContent":["import { ErrorPolicy } from '../enums';\nimport { GraphQLLoadNoFilesError } from './../errors/GraphQLLoadNoFilesError';\nimport { GraphQLLoadPartialImportError } from './../errors/GraphQLLoadPartialImportError';\nimport { GraphQLLoadTypedefsMissingError } from './../errors/GraphQLLoadTypedefsMissingError';\nimport type { GlobPattern, ILogger } from '../types';\nimport { virtualModuleId } from './consts';\n\ninterface HandleErrorsOptions {\n graphqlMatched: number;\n graphqlImports: number;\n importedTypedefs: boolean;\n globPattern: GlobPattern;\n}\n\nconst errorText = {\n NO_FILES_MATCHED: 'No GraphQL files found for the pattern',\n PARTIAL_IMPORT: 'Some GraphQL files were not imported',\n TYPEDEFS_MISSING: `Typedefs not imported. Make sure to import from ${virtualModuleId}`,\n};\n\nexport function handleErrors(errorPolicy: ErrorPolicy, logger: ILogger, { graphqlMatched, graphqlImports, importedTypedefs, globPattern }: HandleErrorsOptions) {\n if (errorPolicy === ErrorPolicy.Ignore) {\n return;\n }\n\n if (graphqlMatched === 0) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadNoFilesError(globPattern);\n }\n logger.error(errorText.NO_FILES_MATCHED, { globPattern });\n }\n\n if (graphqlImports !== graphqlMatched) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadPartialImportError(graphqlImports, graphqlMatched);\n }\n logger.error(errorText.PARTIAL_IMPORT, { graphqlImports, graphqlMatched });\n }\n\n if (!importedTypedefs) {\n if (errorPolicy === ErrorPolicy.Abort) {\n throw new GraphQLLoadTypedefsMissingError();\n }\n logger.error(errorText.TYPEDEFS_MISSING);\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{loadGraphqlModule as r}from"./chunk-YSRKY4QW.js";import{loadVirtualModule as t}from"./chunk-4BZWKYWD.js";import{findFiles as e}from"./chunk-NTUJ73VF.js";import{handleErrors as o}from"./chunk-
|
|
1
|
+
import{loadGraphqlModule as r}from"./chunk-YSRKY4QW.js";import{loadVirtualModule as t}from"./chunk-4BZWKYWD.js";import{findFiles as e}from"./chunk-NTUJ73VF.js";import{handleErrors as o}from"./chunk-JMXMDH5W.js";import{resolveVirtualId as a}from"./chunk-MWX77MGN.js";import{pluginName as n,virtualModuleId as i}from"./chunk-IWP2M6U6.js";import{__name as h}from"./chunk-7QVYU63E.js";var s=h((h,s,p)=>{let l=!1;const c=[];let d=[];return{name:n,enforce:"pre",...h,async buildStart(){l=!1,c.length=0,d=await e(s),p.debug("Matched GraphQL files:",d)},resolveId(r){if(r===i||r.endsWith(".graphql"))return a(r)},async load(o){if(o===a(i)){if(l=!0,s.features.VITE_WATCH){const r=await e(s);for(const t of r)this.addWatchFile(t)}return await t(s,p)}const n=await r(o,s);if(void 0!==n)return c.push(o),n},buildEnd(){p.debug("Build end",{graphqlMatched:d,graphqlImports:c,importedTypedefs:l}),o(s.errorPolicy,p,{graphqlMatched:d.length,graphqlImports:c.length,importedTypedefs:l,globPattern:s.globPattern})}}},"createPlugin");export{s as createPlugin};//# sourceMappingURL=chunk-KZLVSTJX.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/createPlugin.ts"],"names":[],"mappings":";AAeO,IAAM,YAAA,mBAAe,MAAA,CAAA,CAAC,QAAA,EAAoB,OAAA,EAA0B,MAAA,KAAqC;AAC9G,EAAA,IAAI,gBAAA,GAAmB,KAAA;AACvB,EAAA,MAAM,iBAA2B,EAAC;AAClC,EAAA,IAAI,iBAA2B,EAAC;AAEhC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,UAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IAET,GAAG,QAAA;AAAA,IAEH,MAAM,UAAA,GAAa;AACjB,MAAA,gBAAA,GAAmB,KAAA;AACnB,MAAA,cAAA,CAAe,MAAA,GAAS,CAAA;AACxB,MAAA,cAAA,GAAiB,MAAM,UAAU,OAAO,CAAA;AACxC,MAAA,MAAA,CAAO,KAAA,CAAM,0BAA0B,cAAc,CAAA;AAAA,IACvD,CAAA;AAAA,IAEA,UAAU,EAAA,EAAI;AACZ,MAAA,IAAI,EAAA,KAAO,eAAA,IAAmB,EAAA,CAAG,QAAA,CAAS,UAAU,CAAA,EAAG;AACrD,QAAA,OAAO,iBAAiB,EAAE,CAAA;AAAA,MAC5B;AAAA,IACF,CAAA;AAAA,IAEA,MAAM,KAAK,EAAA,EAAI;AACb,MAAA,IAAI,EAAA,KAAO,gBAAA,CAAiB,eAAe,CAAA,EAAG;AAC5C,QAAA,gBAAA,GAAmB,IAAA;AAEnB,QAAA,IAAI,OAAA,CAAQ,SAAS,UAAA,EAAY;AAC/B,UAAA,MAAM,KAAA,GAAQ,MAAM,SAAA,CAAU,OAAO,CAAA;AACrC,UAAA,KAAA,MAAW,KAAK,KAAA,EAAO;AACrB,YAAA,IAAA,CAAK,aAAa,CAAC,CAAA;AAAA,UACrB;AAAA,QACF;AAEA,QAAA,OAAO,MAAM,iBAAA,CAAkB,OAAA,EAAS,MAAM,CAAA;AAAA,MAChD;AAEA,MAAA,MAAM,MAAA,GAAS,MAAM,iBAAA,CAAkB,EAAA,EAAI,OAAO,CAAA;AAClD,MAAA,IAAI,WAAW,MAAA,EAAW;AACxB,QAAA,cAAA,CAAe,KAAK,EAAE,CAAA;AACtB,QAAA,OAAO,MAAA;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IAEA,QAAA,GAAW;AACT,MAAA,MAAA,CAAO,MAAM,WAAA,EAAa;AAAA,QACxB,cAAA;AAAA,QACA,cAAA;AAAA,QACA;AAAA,OACD,CAAA;AAED,MAAA,YAAA,CAAa,OAAA,CAAQ,aAAa,MAAA,EAAQ;AAAA,QACxC,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAA;AAAA,QACA,aAAa,OAAA,CAAQ;AAAA,OACtB,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,EA5D4B,cAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/createPlugin.ts"],"names":[],"mappings":";AAeO,IAAM,YAAA,mBAAe,MAAA,CAAA,CAAC,QAAA,EAAoB,OAAA,EAA0B,MAAA,KAAqC;AAC9G,EAAA,IAAI,gBAAA,GAAmB,KAAA;AACvB,EAAA,MAAM,iBAA2B,EAAC;AAClC,EAAA,IAAI,iBAA2B,EAAC;AAEhC,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,UAAA;AAAA,IACN,OAAA,EAAS,KAAA;AAAA,IAET,GAAG,QAAA;AAAA,IAEH,MAAM,UAAA,GAAa;AACjB,MAAA,gBAAA,GAAmB,KAAA;AACnB,MAAA,cAAA,CAAe,MAAA,GAAS,CAAA;AACxB,MAAA,cAAA,GAAiB,MAAM,UAAU,OAAO,CAAA;AACxC,MAAA,MAAA,CAAO,KAAA,CAAM,0BAA0B,cAAc,CAAA;AAAA,IACvD,CAAA;AAAA,IAEA,UAAU,EAAA,EAAI;AACZ,MAAA,IAAI,EAAA,KAAO,eAAA,IAAmB,EAAA,CAAG,QAAA,CAAS,UAAU,CAAA,EAAG;AACrD,QAAA,OAAO,iBAAiB,EAAE,CAAA;AAAA,MAC5B;AAAA,IACF,CAAA;AAAA,IAEA,MAAM,KAAK,EAAA,EAAI;AACb,MAAA,IAAI,EAAA,KAAO,gBAAA,CAAiB,eAAe,CAAA,EAAG;AAC5C,QAAA,gBAAA,GAAmB,IAAA;AAEnB,QAAA,IAAI,OAAA,CAAQ,SAAS,UAAA,EAAY;AAC/B,UAAA,MAAM,KAAA,GAAQ,MAAM,SAAA,CAAU,OAAO,CAAA;AACrC,UAAA,KAAA,MAAW,KAAK,KAAA,EAAO;AACrB,YAAA,IAAA,CAAK,aAAa,CAAC,CAAA;AAAA,UACrB;AAAA,QACF;AAEA,QAAA,OAAO,MAAM,iBAAA,CAAkB,OAAA,EAAS,MAAM,CAAA;AAAA,MAChD;AAEA,MAAA,MAAM,MAAA,GAAS,MAAM,iBAAA,CAAkB,EAAA,EAAI,OAAO,CAAA;AAClD,MAAA,IAAI,WAAW,MAAA,EAAW;AACxB,QAAA,cAAA,CAAe,KAAK,EAAE,CAAA;AACtB,QAAA,OAAO,MAAA;AAAA,MACT;AAAA,IACF,CAAA;AAAA,IAEA,QAAA,GAAW;AACT,MAAA,MAAA,CAAO,MAAM,WAAA,EAAa;AAAA,QACxB,cAAA;AAAA,QACA,cAAA;AAAA,QACA;AAAA,OACD,CAAA;AAED,MAAA,YAAA,CAAa,OAAA,CAAQ,aAAa,MAAA,EAAQ;AAAA,QACxC,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAgB,cAAA,CAAe,MAAA;AAAA,QAC/B,gBAAA;AAAA,QACA,aAAa,OAAA,CAAQ;AAAA,OACtB,CAAA;AAAA,IACH;AAAA,GACF;AACF,CAAA,EA5D4B,cAAA","file":"chunk-KZLVSTJX.js","sourcesContent":["import type { UnpluginOptions } from 'unplugin';\nimport type { ILogger } from '../types';\nimport { pluginName, virtualModuleId } from './consts';\nimport { findFiles } from './findFiles';\nimport { loadGraphqlModule } from './graphql/loadGraphqlModule';\nimport { loadVirtualModule } from './graphql/loadVirtualModule';\nimport { handleErrors } from './handleErrors';\nimport { resolveVirtualId } from './resolveVirtualId';\nimport type { ResolvedOptions } from './types';\n\ntype Features = {\n esbuild: UnpluginOptions['esbuild'];\n vite: UnpluginOptions['vite'];\n};\n\nexport const createPlugin = (features: Features, options: ResolvedOptions, logger: ILogger): UnpluginOptions => {\n let importedTypedefs = false;\n const graphqlImports: string[] = [];\n let graphqlMatched: string[] = [];\n\n return {\n name: pluginName,\n enforce: 'pre',\n\n ...features,\n\n async buildStart() {\n importedTypedefs = false;\n graphqlImports.length = 0;\n graphqlMatched = await findFiles(options);\n logger.debug('Matched GraphQL files:', graphqlMatched);\n },\n\n resolveId(id) {\n if (id === virtualModuleId || id.endsWith('.graphql')) {\n return resolveVirtualId(id);\n }\n },\n\n async load(id) {\n if (id === resolveVirtualId(virtualModuleId)) {\n importedTypedefs = true;\n\n if (options.features.VITE_WATCH) {\n const files = await findFiles(options);\n for (const f of files) {\n this.addWatchFile(f);\n }\n }\n\n return await loadVirtualModule(options, logger);\n }\n\n const result = await loadGraphqlModule(id, options);\n if (result !== undefined) {\n graphqlImports.push(id);\n return result;\n }\n },\n\n buildEnd() {\n logger.debug('Build end', {\n graphqlMatched,\n graphqlImports,\n importedTypedefs,\n });\n\n handleErrors(options.errorPolicy, logger, {\n graphqlMatched: graphqlMatched.length,\n graphqlImports: graphqlImports.length,\n importedTypedefs,\n globPattern: options.globPattern,\n });\n },\n } satisfies UnpluginOptions;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{esbuildSetup as e}from"./chunk-
|
|
1
|
+
import{esbuildSetup as e}from"./chunk-V7I7VEO4.js";import{__name as r}from"./chunk-7QVYU63E.js";var t=r((t,u)=>{if(t.features.ESBUILD_WATCH)return u.debug("Creating ESBuild setup"),{setup:r(r=>e(r,t,u),"setup")}},"createEsbuild");export{t as createEsbuild};//# sourceMappingURL=chunk-TVQMLG5G.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/esbuild/createEsbuild.ts"],"names":[],"mappings":";AAOO,IAAM,aAAA,mBAAgB,MAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAAgD;AACtG,EAAA,IAAI,OAAA,CAAQ,4CAA6B,EAAG;AAC1C,IAAA,MAAA,CAAO,MAAM,wBAAwB,CAAA;AACrC,IAAA,OAAO;AAAA,MACL,uBAAO,MAAA,CAAA,CAAC,KAAA,KAAuB,aAAa,KAAA,EAAO,OAAA,EAAS,MAAM,CAAA,EAA3D,OAAA;AAAA,KACT;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAR6B,eAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/esbuild/createEsbuild.ts"],"names":[],"mappings":";AAOO,IAAM,aAAA,mBAAgB,MAAA,CAAA,CAAC,OAAA,EAA0B,MAAA,KAAgD;AACtG,EAAA,IAAI,OAAA,CAAQ,4CAA6B,EAAG;AAC1C,IAAA,MAAA,CAAO,MAAM,wBAAwB,CAAA;AACrC,IAAA,OAAO;AAAA,MACL,uBAAO,MAAA,CAAA,CAAC,KAAA,KAAuB,aAAa,KAAA,EAAO,OAAA,EAAS,MAAM,CAAA,EAA3D,OAAA;AAAA,KACT;AAAA,EACF;AACA,EAAA,OAAO,MAAA;AACT,CAAA,EAR6B,eAAA","file":"chunk-TVQMLG5G.js","sourcesContent":["import type { PluginBuild } from 'esbuild';\nimport type { UnpluginOptions } from 'unplugin';\nimport { Feature } from '../../enums';\nimport type { ILogger } from '../../types';\nimport type { ResolvedOptions } from '../types';\nimport { esbuildSetup } from './esbuildSetup';\n\nexport const createEsbuild = (options: ResolvedOptions, logger: ILogger): UnpluginOptions['esbuild'] => {\n if (options.features[Feature.EsbuildWatch]) {\n logger.debug('Creating ESBuild setup');\n return {\n setup: (build: PluginBuild) => esbuildSetup(build, options, logger),\n };\n }\n return undefined;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{findFiles as t}from"./chunk-NTUJ73VF.js";import{virtualModuleId as e}from"./chunk-
|
|
1
|
+
import{findFiles as t}from"./chunk-NTUJ73VF.js";import{virtualModuleId as e}from"./chunk-IWP2M6U6.js";import{__name as r}from"./chunk-7QVYU63E.js";import i from"node:fs/promises";var o=r((r,o,a)=>{r.onLoad({filter:/\.[cm]?ts?$/,namespace:"file"},async r=>{if(!(await i.readFile(r.path,"utf8")).includes(e))return;const s=await t(o);return a.debug("[esbuild] typedefs importer watch",{importer:r.path,graphqlCount:s.length}),{watchFiles:s}})},"esbuildSetup");export{o as esbuildSetup};//# sourceMappingURL=chunk-V7I7VEO4.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/esbuild/esbuildSetup.ts"],"names":[],"mappings":"wKAOO,IAAM,YAAA,mBAAe,MAAA,CAAA,CAAC,KAAA,EAAoB,OAAA,EAA0B,MAAA,KAAoB;AAC7F,EAAA,KAAA,CAAM,MAAA,CAAO,EAAE,MAAA,EAAQ,aAAA,EAAe,WAAW,MAAA,EAAO,EAAG,OAAO,IAAA,KAAS;AACzE,IAAA,MAAM,WAAW,MAAM,EAAA,CAAG,QAAA,CAAS,IAAA,CAAK,MAAM,MAAM,CAAA;AAGpD,IAAA,IAAI,CAAC,QAAA,CAAS,QAAA,CAAS,eAAe,CAAA,EAAG;AACvC,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,MAAM,SAAA,CAAU,OAAO,CAAA;AAE5C,IAAA,MAAA,CAAO,MAAM,mCAAA,EAAqC;AAAA,MAChD,UAAU,IAAA,CAAK,IAAA;AAAA,MACf,cAAc,YAAA,CAAa;AAAA,KAC5B,CAAA;AAED,IAAA,OAAO;AAAA,MACL,UAAA,EAAY;AAAA,KACd;AAAA,EACF,CAAC,CAAA;AACH,CAAA,EApB4B,cAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/esbuild/esbuildSetup.ts"],"names":[],"mappings":"wKAOO,IAAM,YAAA,mBAAe,MAAA,CAAA,CAAC,KAAA,EAAoB,OAAA,EAA0B,MAAA,KAAoB;AAC7F,EAAA,KAAA,CAAM,MAAA,CAAO,EAAE,MAAA,EAAQ,aAAA,EAAe,WAAW,MAAA,EAAO,EAAG,OAAO,IAAA,KAAS;AACzE,IAAA,MAAM,WAAW,MAAM,EAAA,CAAG,QAAA,CAAS,IAAA,CAAK,MAAM,MAAM,CAAA;AAGpD,IAAA,IAAI,CAAC,QAAA,CAAS,QAAA,CAAS,eAAe,CAAA,EAAG;AACvC,MAAA;AAAA,IACF;AAEA,IAAA,MAAM,YAAA,GAAe,MAAM,SAAA,CAAU,OAAO,CAAA;AAE5C,IAAA,MAAA,CAAO,MAAM,mCAAA,EAAqC;AAAA,MAChD,UAAU,IAAA,CAAK,IAAA;AAAA,MACf,cAAc,YAAA,CAAa;AAAA,KAC5B,CAAA;AAED,IAAA,OAAO;AAAA,MACL,UAAA,EAAY;AAAA,KACd;AAAA,EACF,CAAC,CAAA;AACH,CAAA,EApB4B,cAAA","file":"chunk-V7I7VEO4.js","sourcesContent":["import fs from 'node:fs/promises';\nimport type { PluginBuild } from 'esbuild';\nimport type { ILogger } from '../..';\nimport { virtualModuleId } from '../consts';\nimport { findFiles } from '../findFiles';\nimport type { ResolvedOptions } from '../types';\n\nexport const esbuildSetup = (build: PluginBuild, options: ResolvedOptions, logger: ILogger) => {\n build.onLoad({ filter: /\\.[cm]?ts?$/, namespace: 'file' }, async (args) => {\n const contents = await fs.readFile(args.path, 'utf8');\n\n // TODO: Is there a better way to detect which file imports this?\n if (!contents.includes(virtualModuleId)) {\n return;\n }\n\n const graphqlFiles = await findFiles(options);\n\n logger.debug('[esbuild] typedefs importer watch', {\n importer: args.path,\n graphqlCount: graphqlFiles.length,\n });\n\n return {\n watchFiles: graphqlFiles,\n };\n });\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{resolveVirtualId as e}from"./chunk-MWX77MGN.js";import{virtualModuleId as o}from"./chunk-
|
|
1
|
+
import{resolveVirtualId as e}from"./chunk-MWX77MGN.js";import{virtualModuleId as o}from"./chunk-IWP2M6U6.js";import{__name as r}from"./chunk-7QVYU63E.js";var l=r(async r=>{const{file:l,server:t}=r;if(!l.endsWith(".graphql"))return;const d=t.moduleGraph.getModuleById(`\0${l}`);null!=d&&t.moduleGraph.invalidateModule(d);const n=t.moduleGraph.getModuleById(e(o));return null!=n?(t.moduleGraph.invalidateModule(n),[n]):[]},"handleHotUpdate");export{l as handleHotUpdate};//# sourceMappingURL=chunk-XVKHWUNH.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/core/vite/viteHotUpdate.ts"],"names":[],"mappings":";AAUO,IAAM,eAAA,iCAAyB,GAAA,KAAuD;AAC3F,EAAA,MAAM,EAAE,IAAA,EAAM,MAAA,EAAO,GAAI,GAAA;AACzB,EAAA,IAAI,CAAC,IAAA,CAAK,QAAA,CAAS,UAAU,CAAA,EAAG;AAC9B,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,CAAA,EAAA,EAAK,IAAI,CAAA,CAAE,CAAA;AAC3D,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,MAAM,CAAA;AAAA,EAC5C;AAEA,EAAA,MAAM,cAAc,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,gBAAA,CAAiB,eAAe,CAAC,CAAA;AACtF,EAAA,IAAI,eAAe,IAAA,EAAM;AACvB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,WAAW,CAAA;AAC/C,IAAA,OAAO,CAAC,WAAW,CAAA;AAAA,EACrB;AAEA,EAAA,OAAO,EAAC;AACV,CAAA,EAlB+B,iBAAA","file":"chunk-
|
|
1
|
+
{"version":3,"sources":["../../src/core/vite/viteHotUpdate.ts"],"names":[],"mappings":";AAUO,IAAM,eAAA,iCAAyB,GAAA,KAAuD;AAC3F,EAAA,MAAM,EAAE,IAAA,EAAM,MAAA,EAAO,GAAI,GAAA;AACzB,EAAA,IAAI,CAAC,IAAA,CAAK,QAAA,CAAS,UAAU,CAAA,EAAG;AAC9B,IAAA;AAAA,EACF;AAEA,EAAA,MAAM,SAAS,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,CAAA,EAAA,EAAK,IAAI,CAAA,CAAE,CAAA;AAC3D,EAAA,IAAI,UAAU,IAAA,EAAM;AAClB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,MAAM,CAAA;AAAA,EAC5C;AAEA,EAAA,MAAM,cAAc,MAAA,CAAO,WAAA,CAAY,aAAA,CAAc,gBAAA,CAAiB,eAAe,CAAC,CAAA;AACtF,EAAA,IAAI,eAAe,IAAA,EAAM;AACvB,IAAA,MAAA,CAAO,WAAA,CAAY,iBAAiB,WAAW,CAAA;AAC/C,IAAA,OAAO,CAAC,WAAW,CAAA;AAAA,EACrB;AAEA,EAAA,OAAO,EAAC;AACV,CAAA,EAlB+B,iBAAA","file":"chunk-XVKHWUNH.js","sourcesContent":["import type { ViteDevServer } from 'vite';\nimport { virtualModuleId } from '../consts';\nimport { resolveVirtualId } from '../resolveVirtualId';\n\ntype ModuleGraph = Pick<ViteDevServer, 'moduleGraph'>['moduleGraph'];\n\ntype DevServerDependency = {\n moduleGraph: Pick<ModuleGraph, 'getModuleById' | 'invalidateModule'>;\n};\n\nexport const handleHotUpdate = async (ctx: { file: string; server: DevServerDependency }) => {\n const { file, server } = ctx;\n if (!file.endsWith('.graphql')) {\n return;\n }\n\n const gqlMod = server.moduleGraph.getModuleById(`\\0${file}`);\n if (gqlMod != null) {\n server.moduleGraph.invalidateModule(gqlMod);\n }\n\n const typedefsMod = server.moduleGraph.getModuleById(resolveVirtualId(virtualModuleId));\n if (typedefsMod != null) {\n server.moduleGraph.invalidateModule(typedefsMod);\n return [typedefsMod];\n }\n\n return [];\n};\n"]}
|
package/dist/esm/core/consts.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{pluginName,virtualModuleId}from"../chunk-
|
|
1
|
+
export{pluginName,virtualModuleId}from"../chunk-IWP2M6U6.js";import"../chunk-7QVYU63E.js";//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{createPlugin}from"../chunk-
|
|
1
|
+
export{createPlugin}from"../chunk-KZLVSTJX.js";import"../chunk-YSRKY4QW.js";import"../chunk-4BZWKYWD.js";import"../chunk-PHZJMAKG.js";import"../chunk-BLZO6OKI.js";import"../chunk-NTUJ73VF.js";import"../chunk-JMXMDH5W.js";import"../chunk-YFT4EXJQ.js";import"../chunk-LI63GOKC.js";import"../chunk-2GPV2I5J.js";import"../chunk-YJEHKJZ6.js";import"../chunk-MWX77MGN.js";import"../chunk-IWP2M6U6.js";import"../chunk-2YMU2VBJ.js";import"../chunk-7QVYU63E.js";//# sourceMappingURL=createPlugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{createEsbuild}from"../../chunk-
|
|
1
|
+
export{createEsbuild}from"../../chunk-TVQMLG5G.js";import"../../chunk-V7I7VEO4.js";import"../../chunk-NTUJ73VF.js";import"../../chunk-IWP2M6U6.js";import"../../chunk-2YMU2VBJ.js";import"../../chunk-7QVYU63E.js";//# sourceMappingURL=createEsbuild.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{esbuildSetup}from"../../chunk-
|
|
1
|
+
export{esbuildSetup}from"../../chunk-V7I7VEO4.js";import"../../chunk-NTUJ73VF.js";import"../../chunk-IWP2M6U6.js";import"../../chunk-7QVYU63E.js";//# sourceMappingURL=esbuildSetup.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{graphqlPluginFactory}from"../chunk-
|
|
1
|
+
export{graphqlPluginFactory}from"../chunk-HHQRI244.js";import"../chunk-TVQMLG5G.js";import"../chunk-V7I7VEO4.js";import"../chunk-AIWVOWWP.js";import"../chunk-XVKHWUNH.js";import"../chunk-YL5EDPH6.js";import"../chunk-X5KED3TP.js";import"../chunk-FQJC4DDW.js";import"../chunk-GBFAIJ5N.js";import"../chunk-LJWNT7NV.js";import"../chunk-KZLVSTJX.js";import"../chunk-YSRKY4QW.js";import"../chunk-4BZWKYWD.js";import"../chunk-PHZJMAKG.js";import"../chunk-BLZO6OKI.js";import"../chunk-NTUJ73VF.js";import"../chunk-JMXMDH5W.js";import"../chunk-YFT4EXJQ.js";import"../chunk-LI63GOKC.js";import"../chunk-2GPV2I5J.js";import"../chunk-YJEHKJZ6.js";import"../chunk-MWX77MGN.js";import"../chunk-IWP2M6U6.js";import"../chunk-SQEKEBPW.js";import"../chunk-2YMU2VBJ.js";import"../chunk-7QVYU63E.js";//# sourceMappingURL=graphqlPluginFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{handleErrors}from"../chunk-
|
|
1
|
+
export{handleErrors}from"../chunk-JMXMDH5W.js";import"../chunk-YFT4EXJQ.js";import"../chunk-LI63GOKC.js";import"../chunk-2GPV2I5J.js";import"../chunk-YJEHKJZ6.js";import"../chunk-IWP2M6U6.js";import"../chunk-2YMU2VBJ.js";import"../chunk-7QVYU63E.js";//# sourceMappingURL=handleErrors.js.map
|
package/dist/esm/core/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{plugin}from"../chunk-
|
|
1
|
+
export{plugin}from"../chunk-BP5YEWAE.js";import"../chunk-HHQRI244.js";import"../chunk-TVQMLG5G.js";import"../chunk-V7I7VEO4.js";import"../chunk-AIWVOWWP.js";import"../chunk-XVKHWUNH.js";import"../chunk-YL5EDPH6.js";import"../chunk-X5KED3TP.js";import"../chunk-FQJC4DDW.js";import"../chunk-GBFAIJ5N.js";import"../chunk-LJWNT7NV.js";import"../chunk-KZLVSTJX.js";import"../chunk-YSRKY4QW.js";import"../chunk-4BZWKYWD.js";import"../chunk-PHZJMAKG.js";import"../chunk-BLZO6OKI.js";import"../chunk-NTUJ73VF.js";import"../chunk-JMXMDH5W.js";import"../chunk-YFT4EXJQ.js";import"../chunk-LI63GOKC.js";import"../chunk-2GPV2I5J.js";import"../chunk-YJEHKJZ6.js";import"../chunk-MWX77MGN.js";import"../chunk-IWP2M6U6.js";import"../chunk-SQEKEBPW.js";import"../chunk-2YMU2VBJ.js";import"../chunk-7QVYU63E.js";//# sourceMappingURL=plugin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{createVite}from"../../chunk-
|
|
1
|
+
export{createVite}from"../../chunk-AIWVOWWP.js";import"../../chunk-XVKHWUNH.js";import"../../chunk-YL5EDPH6.js";import"../../chunk-MWX77MGN.js";import"../../chunk-IWP2M6U6.js";import"../../chunk-2YMU2VBJ.js";import"../../chunk-7QVYU63E.js";//# sourceMappingURL=createVite.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{handleHotUpdate}from"../../chunk-
|
|
1
|
+
export{handleHotUpdate}from"../../chunk-XVKHWUNH.js";import"../../chunk-MWX77MGN.js";import"../../chunk-IWP2M6U6.js";import"../../chunk-7QVYU63E.js";//# sourceMappingURL=viteHotUpdate.js.map
|
package/dist/esm/esbuild.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var o=r.esbuild;export{o as default};//# sourceMappingURL=esbuild.js.map
|
package/dist/esm/farm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var m=r.farm;export{m as default};//# sourceMappingURL=farm.js.map
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-6QF6SOD5.js";import"./chunk-4WISQJC7.js";export{plugin as default}from"./chunk-
|
|
1
|
+
import"./chunk-6QF6SOD5.js";import"./chunk-4WISQJC7.js";export{plugin as default}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";export{InvalidFeatureCombinationError}from"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";export{GraphQLLoadNoFilesError}from"./chunk-YFT4EXJQ.js";export{GraphQLLoadPartialImportError}from"./chunk-LI63GOKC.js";export{GraphQLLoadTypedefsMissingError}from"./chunk-2GPV2I5J.js";export{GraphQLLoadError}from"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";export{ErrorPolicy,Feature}from"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";//# sourceMappingURL=index.js.map
|
package/dist/esm/nuxt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-6QF6SOD5.js";import"./chunk-4WISQJC7.js";import{plugin as t}from"./chunk-
|
|
1
|
+
import"./chunk-6QF6SOD5.js";import"./chunk-4WISQJC7.js";import{plugin as t}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";import"@nuxt/schema";import{defineNuxtModule as r,addWebpackPlugin as i,addVitePlugin as m}from"@nuxt/kit";var p=r({meta:{name:"nuxt-build-graphql",configKey:"buildGraphql"},setup(r){i(t.webpack(r)),m(t.vite(r))}});export{p as default};//# sourceMappingURL=nuxt.js.map
|
package/dist/esm/rolldown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as o}from"./chunk-
|
|
1
|
+
import{plugin as o}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var r=o.rolldown;export{r as default};//# sourceMappingURL=rolldown.js.map
|
package/dist/esm/rollup.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var o=r.rollup;export{o as default};//# sourceMappingURL=rollup.js.map
|
package/dist/esm/rspack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var o=r.rspack;export{o as default};//# sourceMappingURL=rspack.js.map
|
package/dist/esm/vite.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var t=r.vite;export{t as default};//# sourceMappingURL=vite.js.map
|
package/dist/esm/webpack.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{plugin as r}from"./chunk-
|
|
1
|
+
import{plugin as r}from"./chunk-BP5YEWAE.js";import"./chunk-HHQRI244.js";import"./chunk-TVQMLG5G.js";import"./chunk-V7I7VEO4.js";import"./chunk-AIWVOWWP.js";import"./chunk-XVKHWUNH.js";import"./chunk-YL5EDPH6.js";import"./chunk-X5KED3TP.js";import"./chunk-FQJC4DDW.js";import"./chunk-GBFAIJ5N.js";import"./chunk-LJWNT7NV.js";import"./chunk-KZLVSTJX.js";import"./chunk-YSRKY4QW.js";import"./chunk-4BZWKYWD.js";import"./chunk-PHZJMAKG.js";import"./chunk-BLZO6OKI.js";import"./chunk-NTUJ73VF.js";import"./chunk-JMXMDH5W.js";import"./chunk-YFT4EXJQ.js";import"./chunk-LI63GOKC.js";import"./chunk-2GPV2I5J.js";import"./chunk-YJEHKJZ6.js";import"./chunk-MWX77MGN.js";import"./chunk-IWP2M6U6.js";import"./chunk-SQEKEBPW.js";import"./chunk-2YMU2VBJ.js";import"./chunk-7QVYU63E.js";var o=r.webpack;export{o as default};//# sourceMappingURL=webpack.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shellicar/build-graphql",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Stephen Hellicar",
|
|
@@ -26,129 +26,129 @@
|
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"require": {
|
|
30
|
-
"types": "./dist/cjs/index.d.cts",
|
|
31
|
-
"default": "./dist/cjs/index.cjs"
|
|
32
|
-
},
|
|
33
29
|
"import": {
|
|
34
30
|
"types": "./dist/esm/index.d.ts",
|
|
35
31
|
"default": "./dist/esm/index.js"
|
|
32
|
+
},
|
|
33
|
+
"require": {
|
|
34
|
+
"types": "./dist/cjs/index.d.cts",
|
|
35
|
+
"default": "./dist/cjs/index.cjs"
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"./astro": {
|
|
39
|
-
"require": {
|
|
40
|
-
"types": "./dist/cjs/astro.d.cts",
|
|
41
|
-
"default": "./dist/cjs/astro.cjs"
|
|
42
|
-
},
|
|
43
39
|
"import": {
|
|
44
40
|
"types": "./dist/esm/astro.d.ts",
|
|
45
41
|
"default": "./dist/esm/astro.js"
|
|
42
|
+
},
|
|
43
|
+
"require": {
|
|
44
|
+
"types": "./dist/cjs/astro.d.cts",
|
|
45
|
+
"default": "./dist/cjs/astro.cjs"
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"./rspack": {
|
|
49
|
-
"require": {
|
|
50
|
-
"types": "./dist/cjs/rspack.d.cts",
|
|
51
|
-
"default": "./dist/cjs/rspack.cjs"
|
|
52
|
-
},
|
|
53
49
|
"import": {
|
|
54
50
|
"types": "./dist/esm/rspack.d.ts",
|
|
55
51
|
"default": "./dist/esm/rspack.js"
|
|
52
|
+
},
|
|
53
|
+
"require": {
|
|
54
|
+
"types": "./dist/cjs/rspack.d.cts",
|
|
55
|
+
"default": "./dist/cjs/rspack.cjs"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"./vite": {
|
|
59
|
-
"require": {
|
|
60
|
-
"types": "./dist/cjs/vite.d.cts",
|
|
61
|
-
"default": "./dist/cjs/vite.cjs"
|
|
62
|
-
},
|
|
63
59
|
"import": {
|
|
64
60
|
"types": "./dist/esm/vite.d.ts",
|
|
65
61
|
"default": "./dist/esm/vite.js"
|
|
62
|
+
},
|
|
63
|
+
"require": {
|
|
64
|
+
"types": "./dist/cjs/vite.d.cts",
|
|
65
|
+
"default": "./dist/cjs/vite.cjs"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"./webpack": {
|
|
69
|
-
"require": {
|
|
70
|
-
"types": "./dist/cjs/webpack.d.cts",
|
|
71
|
-
"default": "./dist/cjs/webpack.cjs"
|
|
72
|
-
},
|
|
73
69
|
"import": {
|
|
74
70
|
"types": "./dist/esm/webpack.d.ts",
|
|
75
71
|
"default": "./dist/esm/webpack.js"
|
|
72
|
+
},
|
|
73
|
+
"require": {
|
|
74
|
+
"types": "./dist/cjs/webpack.d.cts",
|
|
75
|
+
"default": "./dist/cjs/webpack.cjs"
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"./rollup": {
|
|
79
|
-
"require": {
|
|
80
|
-
"types": "./dist/cjs/rollup.d.cts",
|
|
81
|
-
"default": "./dist/cjs/rollup.cjs"
|
|
82
|
-
},
|
|
83
79
|
"import": {
|
|
84
80
|
"types": "./dist/esm/rollup.d.ts",
|
|
85
81
|
"default": "./dist/esm/rollup.js"
|
|
82
|
+
},
|
|
83
|
+
"require": {
|
|
84
|
+
"types": "./dist/cjs/rollup.d.cts",
|
|
85
|
+
"default": "./dist/cjs/rollup.cjs"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"./esbuild": {
|
|
89
|
-
"require": {
|
|
90
|
-
"types": "./dist/cjs/esbuild.d.cts",
|
|
91
|
-
"default": "./dist/cjs/esbuild.cjs"
|
|
92
|
-
},
|
|
93
89
|
"import": {
|
|
94
90
|
"types": "./dist/esm/esbuild.d.ts",
|
|
95
91
|
"default": "./dist/esm/esbuild.js"
|
|
92
|
+
},
|
|
93
|
+
"require": {
|
|
94
|
+
"types": "./dist/cjs/esbuild.d.cts",
|
|
95
|
+
"default": "./dist/cjs/esbuild.cjs"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"./nuxt": {
|
|
99
|
-
"require": {
|
|
100
|
-
"types": "./dist/cjs/nuxt.d.cts",
|
|
101
|
-
"default": "./dist/cjs/nuxt.cjs"
|
|
102
|
-
},
|
|
103
99
|
"import": {
|
|
104
100
|
"types": "./dist/esm/nuxt.d.ts",
|
|
105
101
|
"default": "./dist/esm/nuxt.js"
|
|
102
|
+
},
|
|
103
|
+
"require": {
|
|
104
|
+
"types": "./dist/cjs/nuxt.d.cts",
|
|
105
|
+
"default": "./dist/cjs/nuxt.cjs"
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
"./farm": {
|
|
109
|
-
"require": {
|
|
110
|
-
"types": "./dist/cjs/farm.d.cts",
|
|
111
|
-
"default": "./dist/cjs/farm.cjs"
|
|
112
|
-
},
|
|
113
109
|
"import": {
|
|
114
110
|
"types": "./dist/esm/farm.d.ts",
|
|
115
111
|
"default": "./dist/esm/farm.js"
|
|
112
|
+
},
|
|
113
|
+
"require": {
|
|
114
|
+
"types": "./dist/cjs/farm.d.cts",
|
|
115
|
+
"default": "./dist/cjs/farm.cjs"
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
"./types": {
|
|
119
|
-
"require": {
|
|
120
|
-
"types": "./dist/cjs/types.d.cts",
|
|
121
|
-
"default": "./dist/cjs/types.cjs"
|
|
122
|
-
},
|
|
123
119
|
"import": {
|
|
124
120
|
"types": "./dist/esm/types.d.ts",
|
|
125
121
|
"default": "./dist/esm/types.js"
|
|
122
|
+
},
|
|
123
|
+
"require": {
|
|
124
|
+
"types": "./dist/cjs/types.d.cts",
|
|
125
|
+
"default": "./dist/cjs/types.cjs"
|
|
126
126
|
}
|
|
127
127
|
},
|
|
128
128
|
"./graphql": {
|
|
129
|
-
"require": {
|
|
130
|
-
"types": "./dist/cjs/core/graphql.d.cts",
|
|
131
|
-
"default": "./dist/cjs/core/graphql.cjs"
|
|
132
|
-
},
|
|
133
129
|
"import": {
|
|
134
130
|
"types": "./dist/esm/core/graphql.d.ts",
|
|
135
131
|
"default": "./dist/esm/core/graphql.js"
|
|
132
|
+
},
|
|
133
|
+
"require": {
|
|
134
|
+
"types": "./dist/cjs/core/graphql.d.cts",
|
|
135
|
+
"default": "./dist/cjs/core/graphql.cjs"
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
138
|
"./typedefs": {
|
|
139
|
-
"require": {
|
|
140
|
-
"types": "./dist/cjs/core/typedefs.d.cts",
|
|
141
|
-
"default": "./dist/cjs/core/typedefs.cjs"
|
|
142
|
-
},
|
|
143
139
|
"import": {
|
|
144
140
|
"types": "./dist/esm/core/typedefs.d.ts",
|
|
145
141
|
"default": "./dist/esm/core/typedefs.js"
|
|
142
|
+
},
|
|
143
|
+
"require": {
|
|
144
|
+
"types": "./dist/cjs/core/typedefs.d.cts",
|
|
145
|
+
"default": "./dist/cjs/core/typedefs.cjs"
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
},
|
|
149
|
-
"main": "dist/cjs/index.cjs",
|
|
150
|
-
"module": "dist/esm/index.js",
|
|
151
|
-
"types": "dist/esm/index.d.ts",
|
|
149
|
+
"main": "./dist/cjs/index.cjs",
|
|
150
|
+
"module": "./dist/esm/index.js",
|
|
151
|
+
"types": "./dist/esm/index.d.ts",
|
|
152
152
|
"typesVersions": {
|
|
153
153
|
"*": {
|
|
154
154
|
"astro": [
|
|
@@ -230,7 +230,7 @@
|
|
|
230
230
|
"@tsconfig/node20": "^20.1.9",
|
|
231
231
|
"@types/node": "^25.3.2",
|
|
232
232
|
"graphql": "^16.13.0",
|
|
233
|
-
"npm-check-updates": "^19.6.
|
|
233
|
+
"npm-check-updates": "^19.6.3",
|
|
234
234
|
"npm-run-all2": "^8.0.4",
|
|
235
235
|
"rollup": "^4.59.0",
|
|
236
236
|
"terser": "^5.46.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var r=require("./chunk-CIMVULAF.cjs"),u=require("unplugin").createUnplugin(r.graphqlPluginFactory);exports.plugin=u;//# sourceMappingURL=chunk-DOXWOAWQ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../package.json","../../src/core/consts.ts"],"names":[],"mappings":";AACE,IAAA,IAAA,GAAQ,0BAAA;;;ACCV,IAAM,eAAA,GAAkB,UAAA;AAEjB,IAAM,eAAA,GAAkB,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,eAAe,CAAA;AAElD,IAAM,UAAA,GAAa","file":"chunk-UQK6I7TV.cjs","sourcesContent":["{\n \"name\": \"@shellicar/build-graphql\",\n \"private\": false,\n \"version\": \"1.4.2\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Stephen Hellicar\",\n \"description\": \"Build plugin that loads GraphQL files and makes them importable via a virtual typedefs module.\",\n \"keywords\": [\n \"build\",\n \"plugin\",\n \"graphql\",\n \"esbuild\",\n \"vite\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/shellicar/build-graphql.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/shellicar/build-graphql/issues\"\n },\n \"homepage\": \"https://github.com/shellicar/build-graphql#readme\",\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"exports\": {\n \".\": {\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/index.d.ts\",\n \"default\": \"./dist/esm/index.js\"\n }\n },\n \"./astro\": {\n \"require\": {\n \"types\": \"./dist/cjs/astro.d.cts\",\n \"default\": \"./dist/cjs/astro.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/astro.d.ts\",\n \"default\": \"./dist/esm/astro.js\"\n }\n },\n \"./rspack\": {\n \"require\": {\n \"types\": \"./dist/cjs/rspack.d.cts\",\n \"default\": \"./dist/cjs/rspack.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/rspack.d.ts\",\n \"default\": \"./dist/esm/rspack.js\"\n }\n },\n \"./vite\": {\n \"require\": {\n \"types\": \"./dist/cjs/vite.d.cts\",\n \"default\": \"./dist/cjs/vite.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/vite.d.ts\",\n \"default\": \"./dist/esm/vite.js\"\n }\n },\n \"./webpack\": {\n \"require\": {\n \"types\": \"./dist/cjs/webpack.d.cts\",\n \"default\": \"./dist/cjs/webpack.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/webpack.d.ts\",\n \"default\": \"./dist/esm/webpack.js\"\n }\n },\n \"./rollup\": {\n \"require\": {\n \"types\": \"./dist/cjs/rollup.d.cts\",\n \"default\": \"./dist/cjs/rollup.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/rollup.d.ts\",\n \"default\": \"./dist/esm/rollup.js\"\n }\n },\n \"./esbuild\": {\n \"require\": {\n \"types\": \"./dist/cjs/esbuild.d.cts\",\n \"default\": \"./dist/cjs/esbuild.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/esbuild.d.ts\",\n \"default\": \"./dist/esm/esbuild.js\"\n }\n },\n \"./nuxt\": {\n \"require\": {\n \"types\": \"./dist/cjs/nuxt.d.cts\",\n \"default\": \"./dist/cjs/nuxt.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/nuxt.d.ts\",\n \"default\": \"./dist/esm/nuxt.js\"\n }\n },\n \"./farm\": {\n \"require\": {\n \"types\": \"./dist/cjs/farm.d.cts\",\n \"default\": \"./dist/cjs/farm.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/farm.d.ts\",\n \"default\": \"./dist/esm/farm.js\"\n }\n },\n \"./types\": {\n \"require\": {\n \"types\": \"./dist/cjs/types.d.cts\",\n \"default\": \"./dist/cjs/types.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/types.d.ts\",\n \"default\": \"./dist/esm/types.js\"\n }\n },\n \"./graphql\": {\n \"require\": {\n \"types\": \"./dist/cjs/core/graphql.d.cts\",\n \"default\": \"./dist/cjs/core/graphql.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/core/graphql.d.ts\",\n \"default\": \"./dist/esm/core/graphql.js\"\n }\n },\n \"./typedefs\": {\n \"require\": {\n \"types\": \"./dist/cjs/core/typedefs.d.cts\",\n \"default\": \"./dist/cjs/core/typedefs.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/core/typedefs.d.ts\",\n \"default\": \"./dist/esm/core/typedefs.js\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.js\",\n \"types\": \"dist/esm/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"astro\": [\n \"./dist/esm/astro.d.ts\"\n ],\n \"rspack\": [\n \"./dist/esm/rspack.d.ts\"\n ],\n \"vite\": [\n \"./dist/esm/vite.d.ts\"\n ],\n \"webpack\": [\n \"./dist/esm/webpack.d.ts\"\n ],\n \"rollup\": [\n \"./dist/esm/rollup.d.ts\"\n ],\n \"esbuild\": [\n \"./dist/esm/esbuild.d.ts\"\n ],\n \"nuxt\": [\n \"./dist/esm/nuxt.d.ts\"\n ],\n \"farm\": [\n \"./dist/esm/farm.d.ts\"\n ],\n \"types\": [\n \"./dist/esm/types.d.ts\"\n ],\n \"typedefs\": [\n \"./dist/esm/core/typedefs.d.ts\"\n ],\n \"index\": [\n \"./dist/esm/index.d.ts\"\n ]\n }\n },\n \"files\": [\n \"dist\",\n \"*.md\"\n ],\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"type-check\": \"tsc -p tsconfig.check.json\",\n \"test\": \"vitest run\"\n },\n \"peerDependencies\": {\n \"@farmfe/core\": \">=1\",\n \"@nuxt/kit\": \"^4\",\n \"@nuxt/schema\": \"^4\",\n \"esbuild\": \"*\",\n \"rollup\": \"^4\",\n \"vite\": \"^7\",\n \"webpack\": \"^4 || ^5\"\n },\n \"peerDependenciesMeta\": {\n \"@farmfe/core\": {\n \"optional\": true\n },\n \"@nuxt/kit\": {\n \"optional\": true\n },\n \"@nuxt/schema\": {\n \"optional\": true\n },\n \"esbuild\": {\n \"optional\": true\n },\n \"rollup\": {\n \"optional\": true\n },\n \"vite\": {\n \"optional\": true\n },\n \"webpack\": {\n \"optional\": true\n }\n },\n \"devDependencies\": {\n \"@luckycatfactory/esbuild-graphql-loader\": \"^3.8.1\",\n \"@nuxt/kit\": \"^4.3.1\",\n \"@nuxt/schema\": \"^4.3.1\",\n \"@shellicar/build-clean\": \"^1.2.3\",\n \"@tsconfig/node20\": \"^20.1.9\",\n \"@types/node\": \"^25.3.2\",\n \"graphql\": \"^16.13.0\",\n \"npm-check-updates\": \"^19.6.2\",\n \"npm-run-all2\": \"^8.0.4\",\n \"rollup\": \"^4.59.0\",\n \"terser\": \"^5.46.0\",\n \"tsup\": \"^8.5.1\",\n \"vite\": \"^7.3.1\",\n \"vitest\": \"^4.0.18\",\n \"webpack\": \"^5.105.3\"\n },\n \"dependencies\": {\n \"glob\": \"^13.0.6\",\n \"unplugin\": \"^3.0.0\"\n }\n}\n","import { name } from '../../package.json';\n\nconst exportSpecifier = 'typedefs';\n\nexport const virtualModuleId = `${name}/${exportSpecifier}`;\n\nexport const pluginName = 'unplugin-graphql';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../package.json","../../src/core/consts.ts"],"names":[],"mappings":";AACE,IAAA,IAAA,GAAQ,0BAAA;;;ACCV,IAAM,eAAA,GAAkB,UAAA;AAEjB,IAAM,eAAA,GAAkB,CAAA,EAAG,IAAI,CAAA,CAAA,EAAI,eAAe,CAAA;AAElD,IAAM,UAAA,GAAa","file":"chunk-EHX23IKM.js","sourcesContent":["{\n \"name\": \"@shellicar/build-graphql\",\n \"private\": false,\n \"version\": \"1.4.2\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"author\": \"Stephen Hellicar\",\n \"description\": \"Build plugin that loads GraphQL files and makes them importable via a virtual typedefs module.\",\n \"keywords\": [\n \"build\",\n \"plugin\",\n \"graphql\",\n \"esbuild\",\n \"vite\"\n ],\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/shellicar/build-graphql.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/shellicar/build-graphql/issues\"\n },\n \"homepage\": \"https://github.com/shellicar/build-graphql#readme\",\n \"publishConfig\": {\n \"access\": \"public\"\n },\n \"exports\": {\n \".\": {\n \"require\": {\n \"types\": \"./dist/cjs/index.d.cts\",\n \"default\": \"./dist/cjs/index.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/index.d.ts\",\n \"default\": \"./dist/esm/index.js\"\n }\n },\n \"./astro\": {\n \"require\": {\n \"types\": \"./dist/cjs/astro.d.cts\",\n \"default\": \"./dist/cjs/astro.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/astro.d.ts\",\n \"default\": \"./dist/esm/astro.js\"\n }\n },\n \"./rspack\": {\n \"require\": {\n \"types\": \"./dist/cjs/rspack.d.cts\",\n \"default\": \"./dist/cjs/rspack.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/rspack.d.ts\",\n \"default\": \"./dist/esm/rspack.js\"\n }\n },\n \"./vite\": {\n \"require\": {\n \"types\": \"./dist/cjs/vite.d.cts\",\n \"default\": \"./dist/cjs/vite.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/vite.d.ts\",\n \"default\": \"./dist/esm/vite.js\"\n }\n },\n \"./webpack\": {\n \"require\": {\n \"types\": \"./dist/cjs/webpack.d.cts\",\n \"default\": \"./dist/cjs/webpack.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/webpack.d.ts\",\n \"default\": \"./dist/esm/webpack.js\"\n }\n },\n \"./rollup\": {\n \"require\": {\n \"types\": \"./dist/cjs/rollup.d.cts\",\n \"default\": \"./dist/cjs/rollup.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/rollup.d.ts\",\n \"default\": \"./dist/esm/rollup.js\"\n }\n },\n \"./esbuild\": {\n \"require\": {\n \"types\": \"./dist/cjs/esbuild.d.cts\",\n \"default\": \"./dist/cjs/esbuild.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/esbuild.d.ts\",\n \"default\": \"./dist/esm/esbuild.js\"\n }\n },\n \"./nuxt\": {\n \"require\": {\n \"types\": \"./dist/cjs/nuxt.d.cts\",\n \"default\": \"./dist/cjs/nuxt.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/nuxt.d.ts\",\n \"default\": \"./dist/esm/nuxt.js\"\n }\n },\n \"./farm\": {\n \"require\": {\n \"types\": \"./dist/cjs/farm.d.cts\",\n \"default\": \"./dist/cjs/farm.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/farm.d.ts\",\n \"default\": \"./dist/esm/farm.js\"\n }\n },\n \"./types\": {\n \"require\": {\n \"types\": \"./dist/cjs/types.d.cts\",\n \"default\": \"./dist/cjs/types.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/types.d.ts\",\n \"default\": \"./dist/esm/types.js\"\n }\n },\n \"./graphql\": {\n \"require\": {\n \"types\": \"./dist/cjs/core/graphql.d.cts\",\n \"default\": \"./dist/cjs/core/graphql.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/core/graphql.d.ts\",\n \"default\": \"./dist/esm/core/graphql.js\"\n }\n },\n \"./typedefs\": {\n \"require\": {\n \"types\": \"./dist/cjs/core/typedefs.d.cts\",\n \"default\": \"./dist/cjs/core/typedefs.cjs\"\n },\n \"import\": {\n \"types\": \"./dist/esm/core/typedefs.d.ts\",\n \"default\": \"./dist/esm/core/typedefs.js\"\n }\n }\n },\n \"main\": \"dist/cjs/index.cjs\",\n \"module\": \"dist/esm/index.js\",\n \"types\": \"dist/esm/index.d.ts\",\n \"typesVersions\": {\n \"*\": {\n \"astro\": [\n \"./dist/esm/astro.d.ts\"\n ],\n \"rspack\": [\n \"./dist/esm/rspack.d.ts\"\n ],\n \"vite\": [\n \"./dist/esm/vite.d.ts\"\n ],\n \"webpack\": [\n \"./dist/esm/webpack.d.ts\"\n ],\n \"rollup\": [\n \"./dist/esm/rollup.d.ts\"\n ],\n \"esbuild\": [\n \"./dist/esm/esbuild.d.ts\"\n ],\n \"nuxt\": [\n \"./dist/esm/nuxt.d.ts\"\n ],\n \"farm\": [\n \"./dist/esm/farm.d.ts\"\n ],\n \"types\": [\n \"./dist/esm/types.d.ts\"\n ],\n \"typedefs\": [\n \"./dist/esm/core/typedefs.d.ts\"\n ],\n \"index\": [\n \"./dist/esm/index.d.ts\"\n ]\n }\n },\n \"files\": [\n \"dist\",\n \"*.md\"\n ],\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"type-check\": \"tsc -p tsconfig.check.json\",\n \"test\": \"vitest run\"\n },\n \"peerDependencies\": {\n \"@farmfe/core\": \">=1\",\n \"@nuxt/kit\": \"^4\",\n \"@nuxt/schema\": \"^4\",\n \"esbuild\": \"*\",\n \"rollup\": \"^4\",\n \"vite\": \"^7\",\n \"webpack\": \"^4 || ^5\"\n },\n \"peerDependenciesMeta\": {\n \"@farmfe/core\": {\n \"optional\": true\n },\n \"@nuxt/kit\": {\n \"optional\": true\n },\n \"@nuxt/schema\": {\n \"optional\": true\n },\n \"esbuild\": {\n \"optional\": true\n },\n \"rollup\": {\n \"optional\": true\n },\n \"vite\": {\n \"optional\": true\n },\n \"webpack\": {\n \"optional\": true\n }\n },\n \"devDependencies\": {\n \"@luckycatfactory/esbuild-graphql-loader\": \"^3.8.1\",\n \"@nuxt/kit\": \"^4.3.1\",\n \"@nuxt/schema\": \"^4.3.1\",\n \"@shellicar/build-clean\": \"^1.2.3\",\n \"@tsconfig/node20\": \"^20.1.9\",\n \"@types/node\": \"^25.3.2\",\n \"graphql\": \"^16.13.0\",\n \"npm-check-updates\": \"^19.6.2\",\n \"npm-run-all2\": \"^8.0.4\",\n \"rollup\": \"^4.59.0\",\n \"terser\": \"^5.46.0\",\n \"tsup\": \"^8.5.1\",\n \"vite\": \"^7.3.1\",\n \"vitest\": \"^4.0.18\",\n \"webpack\": \"^5.105.3\"\n },\n \"dependencies\": {\n \"glob\": \"^13.0.6\",\n \"unplugin\": \"^3.0.0\"\n }\n}\n","import { name } from '../../package.json';\n\nconst exportSpecifier = 'typedefs';\n\nexport const virtualModuleId = `${name}/${exportSpecifier}`;\n\nexport const pluginName = 'unplugin-graphql';\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{graphqlPluginFactory as r}from"./chunk-RAJPMJIA.js";import{createUnplugin as o}from"unplugin";var m=o(r);export{m as plugin};//# sourceMappingURL=chunk-Q5LQWXTP.js.map
|