vite-code-inspector-plugin
Advanced tools
Comparing version 0.16.2 to 0.16.3
@@ -1,1 +0,1 @@ | ||
"use strict";var x=Object.defineProperty,i=Object.defineProperties;var C=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var v=(e,r,t)=>r in e?x(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,h=(e,r)=>{for(var t in r||(r={}))j.call(r,t)&&v(e,t,r[t]);if(m)for(var t of m(r))T.call(r,t)&&v(e,t,r[t]);return e},y=(e,r)=>i(e,C(r));var P=(e,r,t)=>new Promise((l,a)=>{var n=s=>{try{u(t.next(s))}catch(c){a(c)}},f=s=>{try{u(t.throw(s))}catch(c){a(c)}},u=s=>s.done?l(s.value):Promise.resolve(s.value).then(n,f);u((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("code-inspector-core"),W="vite-code-inspector-plugin",b=["isJsx","isTsx","lang.jsx","lang.tsx"];function w(e){const r={port:0,entry:"",output:e.output};return y(h({name:W},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(l,{command:a}){if(e!=null&&e.close)return!1;let n;return typeof(e==null?void 0:e.dev)=="function"?n=e==null?void 0:e.dev():n=e==null?void 0:e.dev,n===!1?!1:!!n||a==="serve"},transform(l,a){return P(this,null,function*(){if(a.match("node_modules"))return l;l=yield g.getCodeWithWebComponent(e,a,l,r);const[n]=a.split("?",2),f=g.normalizePath(n),u=new URLSearchParams(a);if(e!=null&&e.match&&!e.match.test(f))return l;const{escapeTags:s=[]}=e||{};let c="";return g.isJsTypeFile(f)||f.endsWith(".vue")&&(b.some(d=>u.get(d)!==null)||u.get("lang")==="tsx"||u.get("lang")==="jsx")?c="jsx":f.endsWith(".vue")&&u.get("type")!=="style"&&u.get("raw")===null?c="vue":f.endsWith(".svelte")&&(c="svelte"),c?g.transformCode({content:l,filePath:f,fileType:c,escapeTags:s}):l})}})}exports.ViteCodeInspectorPlugin=w; | ||
"use strict";var x=Object.defineProperty,d=Object.defineProperties;var o=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var f=(e,t,r)=>t in e?x(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,h=(e,t)=>{for(var r in t||(t={}))C.call(t,r)&&f(e,r,t[r]);if(m)for(var r of m(t))j.call(t,r)&&f(e,r,t[r]);return e},v=(e,t)=>d(e,o(t));var P=(e,t,r)=>new Promise((s,n)=>{var i=l=>{try{a(r.next(l))}catch(u){n(u)}},c=l=>{try{a(r.throw(l))}catch(u){n(u)}},a=l=>l.done?s(l.value):Promise.resolve(l.value).then(i,c);a((r=r.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("code-inspector-core"),p="vite-code-inspector-plugin",T=["isJsx","isTsx","lang.jsx","lang.tsx"];function W(e){const t={port:0,entry:"",output:e.output};return v(h({name:p},e.enforcePre===!1?{}:{enforce:"pre"}),{apply(s,{command:n}){return!(e!=null&&e.close)&&g.isDev(e.dev,n==="serve")},transform(s,n){return P(this,null,function*(){if(n.match("node_modules"))return s;s=yield g.getCodeWithWebComponent(e,n,s,t);const[i]=n.split("?",2),c=g.normalizePath(i),a=new URLSearchParams(n);if(e!=null&&e.match&&!e.match.test(c))return s;const{escapeTags:l=[]}=e||{};let u="";return g.isJsTypeFile(c)||c.endsWith(".vue")&&(T.some(y=>a.get(y)!==null)||a.get("lang")==="tsx"||a.get("lang")==="jsx")?u="jsx":c.endsWith(".vue")&&a.get("type")!=="style"&&a.get("raw")===null?u="vue":c.endsWith(".svelte")&&(u="svelte"),u?g.transformCode({content:s,filePath:c,fileType:u,escapeTags:l}):s})}})}exports.ViteCodeInspectorPlugin=W; |
{ | ||
"name": "vite-code-inspector-plugin", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"main": "./dist/index.js", | ||
@@ -41,3 +41,3 @@ "module": "./dist/index.mjs", | ||
"dependencies": { | ||
"code-inspector-core": "0.16.2" | ||
"code-inspector-core": "0.16.3" | ||
}, | ||
@@ -44,0 +44,0 @@ "devDependencies": { |
@@ -56,3 +56,3 @@ <div align="center"> | ||
- The following code editors are currently supported:<br /> | ||
[VSCode](https://code.visualstudio.com/) | [Visual Studio Code - Insiders](https://code.visualstudio.com/insiders/) | [WebStorm](https://www.jetbrains.com/webstorm/) | [Atom](https://atom.io/) | [HBuilderX](https://www.dcloud.io/hbuilderx.html) | [PhpStorm](https://www.jetbrains.com/phpstorm/) | [PyCharm](https://www.jetbrains.com/pycharm/) | [IntelliJ IDEA](https://www.jetbrains.com/idea/) | ||
[VSCode](https://code.visualstudio.com/) | [Cursor](https://www.cursor.com/) | [WebStorm](https://www.jetbrains.com/webstorm/) | [Atom](https://atom.io/) | [HBuilderX](https://www.dcloud.io/hbuilderx.html) | [PhpStorm](https://www.jetbrains.com/phpstorm/) | [PyCharm](https://www.jetbrains.com/pycharm/) | [IntelliJ IDEA](https://www.jetbrains.com/idea/) | [and Others](https://inspector.fe-dev.cn/en/guide/ide.html) | ||
@@ -59,0 +59,0 @@ ## 🚀 Install |
@@ -0,0 +0,0 @@ import { CodeOptions } from 'code-inspector-core'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
16910
86
+ Addedcode-inspector-core@0.16.3(transitive)
- Removedcode-inspector-core@0.16.2(transitive)
Updatedcode-inspector-core@0.16.3