Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vite-plugin-graphql-loader

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-graphql-loader - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

3

dist/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc