Open Tjerk-Haaye-Henricus opened 1 year ago
Hey there 👋
This code:
// result.ts import * as createEvent from './createEvent.graphql';
with this configuration:
const graphqlLoaderPluginInstance = graphqlLoaderPlugin({ mapDocumentNode: (documentNode: DocumentNode) => optimizeDocumentNode(documentNode), }) build({ entryPoints: files, format: 'cjs', outdir: 'dist/cjs', jsx: 'transform', bundle: false, minify: isProduction, sourcemap: !isProduction, platform: 'node', target, plugins: [graphqlLoaderPluginInstance], }).catch((error) => { console.log(error) process.exit(1) })
results in
// result.js var createEvent = __toESM(require("./createEvent.graphql"));
Shouldn't the .graphql file be bundled into the request.ts A example project would help me a lot understanding what should we the result.
Hey there 👋
This code:
with this configuration:
results in
Shouldn't the .graphql file be bundled into the request.ts A example project would help me a lot understanding what should we the result.