vite-plugin-graphql-loader
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -1,4 +0,5 @@ | ||
import { SourceMap } from "magic-string"; | ||
import { SourceMap, SourceMapOptions } from "magic-string"; | ||
export declare const vitePluginGraphqlLoader: (options?: { | ||
noSourceMap?: boolean; | ||
sourceMapOptions?: SourceMapOptions; | ||
}) => { | ||
@@ -5,0 +6,0 @@ name: string; |
@@ -106,3 +106,3 @@ import { EOL } from "os"; | ||
? { mappings: "" } | ||
: outputCode.generateMap(), | ||
: outputCode.generateMap(options?.sourceMapOptions), | ||
}; | ||
@@ -109,0 +109,0 @@ }, |
{ | ||
"name": "vite-plugin-graphql-loader", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "A Vite plugin for loading GraphQL files.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -105,2 +105,11 @@ # vite-plugin-graphql-loader | ||
**_v4.0.1_**: | ||
- Allow passing `sourceMapOptions` when initializing the plugin to configure how the source map is generated (see options [here](https://github.com/Rich-Harris/magic-string?tab=readme-ov-file#sgeneratemap-options-)). `noSourceMap` can alternatively be used to disable source map generation. For example, to enable more detailed source maps: | ||
```ts | ||
import graphqlLoader from "vite-plugin-graphql-loader"; | ||
graphqlLoader({ sourceMapOptions: { hires: true } }); | ||
``` | ||
**_v4.0.0_**: | ||
@@ -107,0 +116,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24399
225
129
0