vite-plugin-graphql-loader 4.0.0 → 4.0.1
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/README.md +7 -6
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# vite-plugin-graphql-loader
|
|
2
2
|
|
|
3
|
-
[](https://
|
|
3
|
+
[](https://www.npmjs.com/package/vite-plugin-graphql-loader/)
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/bun-graphql-loader)
|
|
6
|
+

|
|
7
|
+

|
|
8
|
+

|
|
9
|
+

|
|
9
10
|
|
|
10
11
|
A Vite plugin for loading GraphQL .gql and .graphql files, based on [graphql-tag/loader](https://github.com/apollographql/graphql-tag)
|
|
11
12
|
|
|
@@ -115,4 +116,4 @@ console.log(_fragments.ExampleFragment); // Has type `FragmentDefinitionNode`
|
|
|
115
116
|
|
|
116
117
|
**_v3.0.0_**:
|
|
117
118
|
|
|
118
|
-
- [Moved from CJS to ESM](https://github.com/
|
|
119
|
+
- [Moved from CJS to ESM](https://github.com/0x31/vite-plugin-graphql-loader/commit/0e0b37cfcb0ecbdf28e985aeca3454137b4b73e3), 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.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vite-plugin-graphql-loader",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "A Vite plugin for loading GraphQL files.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"test": "vitest",
|
|
14
14
|
"build": "rimraf ./dist && tsc",
|
|
15
15
|
"package:bump": "yarn version --patch",
|
|
16
|
-
"package:publish": "
|
|
17
|
-
"lint": "
|
|
16
|
+
"package:publish": "bun run build && bun run package:bump && npm publish",
|
|
17
|
+
"lint": "prettier -w src tests/**/*.ts && eslint --fix"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/
|
|
21
|
+
"url": "git+https://github.com/0x31/vite-plugin-graphql-loader.git"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"vite",
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"graphql",
|
|
27
27
|
"graphql-tag"
|
|
28
28
|
],
|
|
29
|
-
"author": "
|
|
29
|
+
"author": "0x31",
|
|
30
30
|
"license": "ISC",
|
|
31
31
|
"bugs": {
|
|
32
|
-
"url": "https://github.com/
|
|
32
|
+
"url": "https://github.com/0x31/vite-plugin-graphql-loader/issues"
|
|
33
33
|
},
|
|
34
|
-
"homepage": "https://github.com/
|
|
34
|
+
"homepage": "https://github.com/0x31/vite-plugin-graphql-loader#readme",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"graphql": "^16.8.1",
|
|
37
37
|
"graphql-tag": "^2.12.6",
|