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

vite-plugin-externals

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vite-plugin-externals - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

0

dist/es/src/constant.d.ts
export declare const ID_FILTER_REG: RegExp;
export declare const NODE_MODULES_FLAG = "node_modules";
export declare const CACHE_DIR = ".vite-plugin-externals";
export const ID_FILTER_REG = /\.(mjs|js|ts|vue|jsx|tsx)(\?.*|)$/;
export const NODE_MODULES_FLAG = 'node_modules';
export const CACHE_DIR = '.vite-plugin-externals';

@@ -0,0 +0,0 @@ import { TransformPluginContext } from 'rollup';

@@ -0,0 +0,0 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {

import { Options, UserOptions } from './types';
export declare const defaultOptions: Options;
export declare function resolveOptions(userOptions: UserOptions): Options;

@@ -0,0 +0,0 @@ import { ID_FILTER_REG, NODE_MODULES_FLAG } from './constant';

import { ExternalValue, Externals, TransformModuleNameFn } from './types';
export declare const transformImports: (raw: string, externalValue: ExternalValue, transformModuleName: TransformModuleNameFn) => string;
export declare function transformRequires(code: string, externals: Externals, transformModuleName: TransformModuleNameFn): string;

@@ -0,0 +0,0 @@ import { Parser } from 'acorn';

@@ -0,0 +0,0 @@ import { TransformPluginContext } from 'rollup';

export declare function isObject(o: unknown): boolean;
export function isObject(o) {
return Object.prototype.toString.call(o) === '[object Object]';
}

@@ -0,0 +0,0 @@ import { transformImports, transformRequires } from '../src/transform';

export declare const ID_FILTER_REG: RegExp;
export declare const NODE_MODULES_FLAG = "node_modules";
export declare const CACHE_DIR = ".vite-plugin-externals";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { TransformPluginContext } from 'rollup';

@@ -0,0 +0,0 @@ "use strict";

import { Options, UserOptions } from './types';
export declare const defaultOptions: Options;
export declare function resolveOptions(userOptions: UserOptions): Options;

@@ -0,0 +0,0 @@ "use strict";

import { ExternalValue, Externals, TransformModuleNameFn } from './types';
export declare const transformImports: (raw: string, externalValue: ExternalValue, transformModuleName: TransformModuleNameFn) => string;
export declare function transformRequires(code: string, externals: Externals, transformModuleName: TransformModuleNameFn): string;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { TransformPluginContext } from 'rollup';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export declare function isObject(o: unknown): boolean;

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ "use strict";

2

index.d.ts

@@ -1,1 +0,1 @@

export * from './dist'
export * from './dist/src'
{
"name": "vite-plugin-externals",
"version": "0.6.1",
"version": "0.6.2",
"description": "externals plugin for vite",

@@ -5,0 +5,0 @@ "author": "crcong",

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