Releases: 0x31/vite-plugin-graphql-loader
Releases · 0x31/vite-plugin-graphql-loader
v4.0.4
v4.0.3
v4.0.2
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
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
Full Changelog: v3.0.0...v3.0.1
Changelog:
- Switched
await import
statements to top-levelimport
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
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 yourpackage.json
then it should work as expected.
Fixes #6.