webpack-code-inspector-plugin
Advanced tools
Comparing version 0.16.1 to 0.16.2
@@ -1,1 +0,1 @@ | ||
(function(t,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e(require("code-inspector-core"),require("path")):typeof define=="function"&&define.amd?define(["code-inspector-core","path"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,t.WebpackCodeInspectorPlugin=e(t.codeInspectorCore,t.path))})(this,function(t,e){"use strict";var v=Object.defineProperty,x=Object.defineProperties;var m=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var _=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var j=(t,e,s)=>e in t?v(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,c=(t,e)=>{for(var s in e||(e={}))_.call(e,s)&&j(t,s,e[s]);if(l)for(var s of l(e))T.call(e,s)&&j(t,s,e[s]);return t},a=(t,e)=>x(t,m(e));let s="";typeof __dirname!="undefined"?s=__dirname:s=e.dirname(t.fileURLToPath(typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:document.currentScript&&document.currentScript.src||new URL("index.umd.js",document.baseURI).href));let f=!0;const p=(d,n)=>{var o,h;if(!f)return;f=!1;const u=(n==null?void 0:n.compiler)||n,r=(o=u==null?void 0:u.options)==null?void 0:o.module;((r==null?void 0:r.rules)||(r==null?void 0:r.loaders)||[]).push(c({test:(h=d==null?void 0:d.match)!=null?h:/\.(vue|jsx|tsx|js|ts|mjs|mts)$/,exclude:/node_modules/,use:[{loader:e.resolve(s,"./loader.js"),options:d}]},d.enforcePre===!1?{}:{enforce:"pre"}),a(c({},d!=null&&d.injectTo?{resource:d==null?void 0:d.injectTo}:{test:/\.(jsx|tsx|js|ts|mjs|mts)$/,exclude:/node_modules/}),{use:[{loader:e.resolve(s,"./inject-loader.js"),options:d}],enforce:"post"}))};class y{constructor(n){this.options=n}apply(n){var r,i,o;if(f=!0,this.options.close||!t.isDev(this.options.dev,((r=n==null?void 0:n.options)==null?void 0:r.mode)==="development"||process.env.NODE_ENV==="development"))return;((o=(i=n==null?void 0:n.options)==null?void 0:i.cache)==null?void 0:o.type)==="filesystem"&&(n.options.cache.version="code-inspector-".concat(Date.now()));const u={port:0,entry:"",output:this.options.output};p(a(c({},this.options),{record:u}),n)}}return y}); | ||
(function(t,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e(require("code-inspector-core"),require("path")):typeof define=="function"&&define.amd?define(["code-inspector-core","path"],e):(t=typeof globalThis!="undefined"?globalThis:t||self,t.WebpackCodeInspectorPlugin=e(t.codeInspectorCore,t.path))})(this,function(t,e){"use strict";var T=Object.defineProperty,L=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var D=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable;var m=(t,e,s)=>e in t?T(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,i=(t,e)=>{for(var s in e||(e={}))D.call(e,s)&&m(t,s,e[s]);if(v)for(var s of v(e))I.call(e,s)&&m(t,s,e[s]);return t},h=(t,e)=>L(t,C(e));var s=typeof document!="undefined"?document.currentScript:null;let c="";typeof __dirname!="undefined"?c=__dirname:c=e.dirname(t.fileURLToPath(typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:s&&s.src||new URL("index.umd.js",document.baseURI).href));let a=!0;const x=(d,n)=>{var o,f;if(!a)return;a=!1;const r=(n==null?void 0:n.compiler)||n,u=(o=r==null?void 0:r.options)==null?void 0:o.module;((u==null?void 0:u.rules)||(u==null?void 0:u.loaders)||[]).push(i({test:(f=d==null?void 0:d.match)!=null?f:/\.(vue|jsx|tsx|js|ts|mjs|mts)$/,exclude:/node_modules/,use:[{loader:e.resolve(c,"./loader.js"),options:d}]},d.enforcePre===!1?{}:{enforce:"pre"}),h(i({},d!=null&&d.injectTo?{resource:d==null?void 0:d.injectTo}:{test:/\.(jsx|tsx|js|ts|mjs|mts)$/,exclude:/node_modules/}),{use:[{loader:e.resolve(c,"./inject-loader.js"),options:d}],enforce:"post"}))};class _{constructor(n){this.options=n}apply(n){var l,o,f,p,j,y;if(a=!0,this.options.close)return;let r;if(typeof((l=this.options)==null?void 0:l.dev)=="function"?r=(o=this.options)==null?void 0:o.dev():r=(f=this.options)==null?void 0:f.dev,r===!1||!r&&((p=n==null?void 0:n.options)==null?void 0:p.mode)!=="development"&&process.env.NODE_ENV!=="development")return;((y=(j=n==null?void 0:n.options)==null?void 0:j.cache)==null?void 0:y.type)==="filesystem"&&(n.options.cache.version="code-inspector-".concat(Date.now()));const u={port:0,entry:"",output:this.options.output};x(h(i({},this.options),{record:u}),n)}}return _}); |
{ | ||
"name": "webpack-code-inspector-plugin", | ||
"version": "0.16.1", | ||
"version": "0.16.2", | ||
"main": "./dist/index.umd.js", | ||
@@ -41,3 +41,3 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"code-inspector-core": "0.16.1" | ||
"code-inspector-core": "0.16.2" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
@@ -10,3 +10,3 @@ <div align="center"> | ||
[![NPM version](https://img.shields.io/npm/v/code-inspector-plugin.svg)](https://www.npmjs.com/package/code-inspector-plugin) | ||
[![GITHUB star](https://img.shields.io/github/stars/zh-lx/pinyin-pro?style=flat&label=%E2%AD%90%EF%B8%8F%20stars)](https://github.com/zh-lx/code-inspector) | ||
[![GITHUB star](https://img.shields.io/github/stars/zh-lx/code-inspector?style=flat&label=%E2%AD%90%EF%B8%8F%20stars)](https://github.com/zh-lx/code-inspector) | ||
[![NPM Downloads](https://img.shields.io/npm/dm/code-inspector-plugin.svg)](https://npmcharts.netlify.app/compare/code-inspector-plugin?minimal=true) | ||
@@ -13,0 +13,0 @@ [![MIT-license](https://img.shields.io/npm/l/code-inspector.svg)](https://opensource.org/licenses/MIT) |
@@ -0,0 +0,0 @@ import { CodeOptions } from 'code-inspector-core'; |
export default function WebpackCodeInjectLoader(content: string, source: any, meta: any): Promise<void>; |
export default function WebpackCodeInspectorLoader(content: string): Promise<string>; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20407
101
+ Addedcode-inspector-core@0.16.2(transitive)
- Removedcode-inspector-core@0.16.1(transitive)
Updatedcode-inspector-core@0.16.2