Comparing version 1.10.0 to 1.10.1
@@ -1184,7 +1184,11 @@ "use strict"; | ||
map = combineSourcemaps(args.path, [ | ||
result.map, | ||
result.map === "string" ? JSON.parse(result.map) : result.map, | ||
map | ||
]); | ||
} else { | ||
map = result.map; | ||
if (typeof result.map === "string") { | ||
map = JSON.parse(result.map); | ||
} else { | ||
map = result.map; | ||
} | ||
} | ||
@@ -1588,3 +1592,2 @@ } | ||
); | ||
var VIRTUAL_MODULE_PREFIX = (0, import_path5.resolve)(process.cwd(), "_virtual_"); | ||
function getRspackPlugin(factory) { | ||
@@ -1594,2 +1597,3 @@ return (userOptions) => { | ||
apply(compiler) { | ||
const VIRTUAL_MODULE_PREFIX = (0, import_path5.resolve)(compiler.options.context ?? process.cwd(), "_virtual_"); | ||
const injected = compiler.$unpluginContext || {}; | ||
@@ -1759,3 +1763,2 @@ compiler.$unpluginContext = injected; | ||
); | ||
var VIRTUAL_MODULE_PREFIX2 = (0, import_path7.resolve)(import_process2.default.cwd(), "_virtual_"); | ||
function getWebpackPlugin(factory) { | ||
@@ -1765,2 +1768,3 @@ return (userOptions) => { | ||
apply(compiler) { | ||
const VIRTUAL_MODULE_PREFIX = (0, import_path7.resolve)(compiler.options.context ?? import_process2.default.cwd(), "_virtual_"); | ||
const injected = compiler.$unpluginContext || {}; | ||
@@ -1780,3 +1784,3 @@ compiler.$unpluginContext = injected; | ||
__unpluginMeta: meta, | ||
__virtualModulePrefix: VIRTUAL_MODULE_PREFIX2 | ||
__virtualModulePrefix: VIRTUAL_MODULE_PREFIX | ||
} | ||
@@ -1783,0 +1787,0 @@ ); |
@@ -108,2 +108,3 @@ "use strict"; | ||
Object.assign( | ||
{}, | ||
this._compilation && createBuildContext(this._compilation), | ||
@@ -110,0 +111,0 @@ context |
@@ -103,2 +103,3 @@ "use strict"; | ||
Object.assign( | ||
{}, | ||
this._compilation && createBuildContext(this._compilation), | ||
@@ -105,0 +106,0 @@ context |
{ | ||
"name": "unplugin", | ||
"version": "1.10.0", | ||
"packageManager": "pnpm@8.15.4", | ||
"version": "1.10.1", | ||
"packageManager": "pnpm@8.15.5", | ||
"description": "Unified plugin system for build tools", | ||
@@ -52,15 +52,15 @@ "license": "MIT", | ||
"@ampproject/remapping": "^2.3.0", | ||
"@antfu/eslint-config": "^2.8.0", | ||
"@antfu/eslint-config": "^2.11.4", | ||
"@antfu/ni": "^0.21.12", | ||
"@farmfe/cli": "^0.7.0", | ||
"@farmfe/core": "^1.0.0-beta.0", | ||
"@farmfe/cli": "^1.0.0", | ||
"@farmfe/core": "^1.0.9", | ||
"@rolldown/node": "^0.0.5", | ||
"@rspack/cli": "^0.5.6", | ||
"@rspack/core": "^0.5.6", | ||
"@rspack/cli": "^0.5.9", | ||
"@rspack/core": "^0.5.9", | ||
"@types/fs-extra": "^11.0.4", | ||
"@types/node": "^20.11.24", | ||
"@types/node": "^20.11.30", | ||
"@types/webpack-sources": "^3.2.3", | ||
"bumpp": "^9.4.0", | ||
"conventional-changelog-cli": "^4.1.0", | ||
"esbuild": "^0.20.1", | ||
"esbuild": "^0.20.2", | ||
"eslint": "^8.57.0", | ||
@@ -73,9 +73,9 @@ "fast-glob": "^3.3.2", | ||
"picocolors": "^1.0.0", | ||
"rollup": "^4.12.1", | ||
"simple-git-hooks": "^2.10.0", | ||
"rollup": "^4.13.2", | ||
"simple-git-hooks": "^2.11.1", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.1.5", | ||
"vitest": "^1.3.1", | ||
"webpack": "^5.90.3", | ||
"typescript": "^5.4.3", | ||
"vite": "^5.2.7", | ||
"vitest": "^1.4.0", | ||
"webpack": "^5.91.0", | ||
"webpack-cli": "4.10.0" | ||
@@ -82,0 +82,0 @@ }, |
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
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
175423
4908