Skip to content

Releases: 0x31/vite-plugin-graphql-loader

v4.0.4

12 Aug 07:12
v4.0.4
ad1231a
Compare
Choose a tag to compare

Full Changelog: v4.0.3...v4.0.4

Changelog:

  • Support imports without quotation marks and named imports:
#import ./fragment1.graphql
#import Fragment2 from "./fragment2.graphql"

v4.0.3

12 Aug 05:11
v4.0.3
ee91605
Compare
Choose a tag to compare

Full Changelog: v4.0.2...v4.0.3

Changelog:

  • Fixed fragments not being fully de-duplicated (fixes #8)

v4.0.2

16 Jul 11:04
v4.0.2
6b0e5bc
Compare
Choose a tag to compare

Full Changelog: v4.0.0...v4.0.2

Changelog:

  • Allow passing sourceMapOptions when initializing the plugin to configure how the source map is generated (see options here). noSourceMap can alternatively be used to disable source map generation. For example, to enable more detailed source maps:
import graphqlLoader from "vite-plugin-graphql-loader";
graphqlLoader({ sourceMapOptions: { hires: true } });

v4.0.0

16 Jul 11:03
v4.0.0
c52f2bf
Compare
Choose a tag to compare

Full Changelog: v3.0.1...v4.0.0

Changelog:

  • Added source-map generation. Can by disabled by initializing with graphqlLoader({noSourceMap: true}).
  • Refactored code generation to be more maintainable, added more test cases.
  • Migrated from yarn to bun.

v3.0.1

24 Jan 03:14
v3.0.1
fbe73a0
Compare
Choose a tag to compare

Full Changelog: v3.0.0...v3.0.1

Changelog:

  • Switched await import statements to top-level import statements (fixes #5 - Top-level await is not available error)
  • Added _queries and _fragments for improved module declaration types.
  • Updated snippets to be defined in TypeScript and then stringified.

v3.0.0

24 Jan 00:56
v3.0.0
a2dcce5
Compare
Choose a tag to compare

Full Changelog: v2.0.0...v3.0.0

Changelog:

  • Moved from CJS to ESM, inline with Vite 5.0's CJS deprecation. If you are using CommonJS, continue using v2.0 of this package. If you have "type": "module", in your package.json then it should work as expected.

Fixes #6.

v2.0.0

07 Mar 06:13
88dc2f5
Compare
Choose a tag to compare

Full Changelog: v1.0.4...v2.0.0

Changelog:

  • #2 by @emahuni
    • Generate ESM code
    • Add Vitest for better testing strategy

Fixes: