Comparing version 0.5.1 to 0.5.2
@@ -987,3 +987,3 @@ var __create = Object.create; | ||
var import_path3 = require("path"); | ||
var import_webpack_sources = require("webpack-sources"); | ||
var import_webpack_sources = __toESM(require("webpack-sources")); | ||
function genContext(compilation) { | ||
@@ -998,3 +998,3 @@ return { | ||
if (emittedFile.source && outFileName) { | ||
compilation.emitAsset(outFileName, sources ? new import_webpack_sources.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
compilation.emitAsset(outFileName, import_webpack_sources.default ? new import_webpack_sources.default.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
source: () => emittedFile.source, | ||
@@ -1001,0 +1001,0 @@ size: () => emittedFile.source.length |
@@ -0,4 +1,6 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -17,2 +19,3 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -29,3 +32,3 @@ | ||
var import_path = require("path"); | ||
var import_webpack_sources = require("webpack-sources"); | ||
var import_webpack_sources = __toESM(require("webpack-sources")); | ||
function genContext(compilation) { | ||
@@ -40,3 +43,3 @@ return { | ||
if (emittedFile.source && outFileName) { | ||
compilation.emitAsset(outFileName, sources ? new import_webpack_sources.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
compilation.emitAsset(outFileName, import_webpack_sources.default ? new import_webpack_sources.default.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
source: () => emittedFile.source, | ||
@@ -43,0 +46,0 @@ size: () => emittedFile.source.length |
@@ -0,4 +1,6 @@ | ||
var __create = Object.create; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __getProtoOf = Object.getPrototypeOf; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
@@ -17,2 +19,3 @@ var __export = (target, all) => { | ||
}; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
@@ -29,3 +32,3 @@ | ||
var import_path = require("path"); | ||
var import_webpack_sources = require("webpack-sources"); | ||
var import_webpack_sources = __toESM(require("webpack-sources")); | ||
function genContext(compilation) { | ||
@@ -40,3 +43,3 @@ return { | ||
if (emittedFile.source && outFileName) { | ||
compilation.emitAsset(outFileName, sources ? new import_webpack_sources.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
compilation.emitAsset(outFileName, import_webpack_sources.default ? new import_webpack_sources.default.RawSource(typeof emittedFile.source === "string" ? emittedFile.source : Buffer.from(emittedFile.source)) : { | ||
source: () => emittedFile.source, | ||
@@ -43,0 +46,0 @@ size: () => emittedFile.source.length |
{ | ||
"name": "unplugin", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"description": "Unified plugin system for build tools", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/unplugin", |
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
95673
2620