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

unplugin

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unplugin - npm Package Compare versions

Comparing version 2.0.0-beta.1 to 2.0.0-beta.2

4

dist/index.d.ts

@@ -124,4 +124,4 @@ import * as _farmfe_core from '@farmfe/core';

onLoadFilter?: RegExp;
loader?: Loader | ((code: string, id: string) => Loader);
setup?: (build: EsbuildPluginBuild) => void | Promise<void>;
loader?: Loader | ((code: string, id: string) => Loader);
config?: (options: BuildOptions) => void;

@@ -157,4 +157,2 @@ };

framework: 'esbuild';
/** @deprecated {getNativeBuildContext} */
build?: EsbuildPluginBuild;
/** Set the host plugin name of esbuild when returning multiple plugins */

@@ -161,0 +159,0 @@ esbuildHostName?: string;

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

// src/utils.ts
// src/utils/webpack-like.ts
import { isAbsolute, normalize } from "path";

@@ -13,3 +13,15 @@ function normalizeAbsolutePath(path) {

import { resolve } from "path";
// src/utils/context.ts
import { Parser } from "acorn";
function parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
}
// src/rspack/context.ts
function createBuildContext(compiler, compilation, loaderContext) {

@@ -31,10 +43,3 @@ return {

},
parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
},
parse,
emitFile(emittedFile) {

@@ -41,0 +46,0 @@ const outFileName = emittedFile.fileName || emittedFile.name;

// src/rspack/context.ts
import { Buffer } from "buffer";
import { resolve } from "path";
// src/utils/context.ts
import { Parser } from "acorn";
function parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
}
// src/rspack/context.ts
function createBuildContext(compiler, compilation, loaderContext) {

@@ -21,10 +33,3 @@ return {

},
parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
},
parse,
emitFile(emittedFile) {

@@ -31,0 +36,0 @@ const outFileName = emittedFile.fileName || emittedFile.name;

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

// src/utils.ts
// src/utils/webpack-like.ts
import { isAbsolute, normalize } from "path";

@@ -15,3 +15,15 @@ function normalizeAbsolutePath(path) {

import process from "process";
// src/utils/context.ts
import { Parser } from "acorn";
function parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
}
// src/webpack/context.ts
var require2 = createRequire(import.meta.url);

@@ -26,10 +38,3 @@ function getSource(fileSource) {

return {
parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
},
parse,
addWatchFile(id) {

@@ -36,0 +41,0 @@ options.addWatchFile(resolve(process.cwd(), id));

@@ -6,3 +6,15 @@ // src/webpack/context.ts

import process from "process";
// src/utils/context.ts
import { Parser } from "acorn";
function parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
}
// src/webpack/context.ts
var require2 = createRequire(import.meta.url);

@@ -17,10 +29,3 @@ function getSource(fileSource) {

return {
parse(code, opts = {}) {
return Parser.parse(code, {
sourceType: "module",
ecmaVersion: "latest",
locations: true,
...opts
});
},
parse,
addWatchFile(id) {

@@ -27,0 +32,0 @@ options.addWatchFile(resolve(process.cwd(), id));

{
"name": "unplugin",
"type": "module",
"version": "2.0.0-beta.1",
"packageManager": "pnpm@9.14.2",
"version": "2.0.0-beta.2",
"packageManager": "pnpm@9.14.4",
"description": "Unified plugin system for build tools",

@@ -61,6 +61,6 @@ "license": "MIT",

"esbuild-plugin-copy": "^2.1.1",
"eslint": "^9.15.0",
"eslint": "^9.16.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"jiti": "^2.4.0",
"jiti": "^2.4.1",
"lint-staged": "^15.2.10",

@@ -70,6 +70,6 @@ "magic-string": "^0.30.14",

"rolldown": "^0.14.0",
"rollup": "^4.27.4",
"rollup": "^4.28.0",
"simple-git-hooks": "^2.11.1",
"tsup": "^8.3.5",
"typescript": "~5.6.3",
"typescript": "~5.7.2",
"unplugin": "workspace:*",

@@ -82,2 +82,7 @@ "unplugin-unused": "^0.2.3",

},
"pnpm": {
"overrides": {
"typescript@*": "~5.6.3"
}
},
"simple-git-hooks": {

@@ -84,0 +89,0 @@ "pre-commit": "pnpm lint-staged"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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