gant-core 2.0.2 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/bin/index.js +21 -1
- package/bin/styletext-loader.mjs +30 -0
- package/lib/cli/config/index.js +155 -2
- package/lib/cli/config/index.mjs +3 -0
- package/lib/cli/copyfiles/index.js +33 -2
- package/lib/cli/copyfiles/index.mjs +3 -0
- package/lib/cli/create/config/index.js +1226 -4
- package/lib/cli/create/config/index.mjs +11 -0
- package/lib/cli/create/index.js +4 -2
- package/lib/cli/create/index.mjs +3 -0
- package/lib/cli/create/module/index.js +33214 -2
- package/lib/cli/create/module/index.mjs +3 -0
- package/lib/cli/i18n/index.js +22179 -3
- package/lib/cli/i18n/index.mjs +10 -0
- package/lib/cli/i18n/utils.js +180 -2
- package/lib/cli/i18n/utils.mjs +3 -0
- package/lib/cli/index.js +3655 -2
- package/lib/cli/index.mjs +3 -0
- package/lib/cli/routes/index.js +75 -2
- package/lib/cli/routes/index.mjs +3 -0
- package/lib/cli/tsconfig/index.js +70 -2
- package/lib/cli/tsconfig/index.mjs +3 -0
- package/lib/cli/utils/detectPort.js +120 -2
- package/lib/cli/utils/detectPort.mjs +3 -0
- package/lib/cli/utils/getJavascriptfile.js +14 -2
- package/lib/cli/utils/getJavascriptfile.mjs +3 -0
- package/lib/cli/utils/index.js +4948 -2
- package/lib/cli/utils/index.mjs +3 -0
- package/lib/cli/webpack/Webpack.js +60 -2
- package/lib/cli/webpack/Webpack.mjs +3 -0
- package/lib/cli/webpack/config/analyzer.config.js +17 -2
- package/lib/cli/webpack/config/analyzer.config.mjs +3 -0
- package/lib/cli/webpack/config/browsers.js +13 -2
- package/lib/cli/webpack/config/browsers.mjs +3 -0
- package/lib/cli/webpack/config/cssRules.js +80 -2
- package/lib/cli/webpack/config/cssRules.mjs +3 -0
- package/lib/cli/webpack/config/default.config.js +179 -2
- package/lib/cli/webpack/config/default.config.mjs +3 -0
- package/lib/cli/webpack/config/development.config.js +45 -2
- package/lib/cli/webpack/config/development.config.mjs +3 -0
- package/lib/cli/webpack/config/framework/index.js +25 -2
- package/lib/cli/webpack/config/framework/index.mjs +3 -0
- package/lib/cli/webpack/config/framework/react.js +23 -2
- package/lib/cli/webpack/config/framework/react.mjs +3 -0
- package/lib/cli/webpack/config/framework/vue.js +33 -2
- package/lib/cli/webpack/config/framework/vue.mjs +3 -0
- package/lib/cli/webpack/config/index.js +23 -2
- package/lib/cli/webpack/config/index.mjs +3 -0
- package/lib/cli/webpack/config/production.config.js +74 -2
- package/lib/cli/webpack/config/production.config.mjs +3 -0
- package/lib/cli/webpack/plugins/copy.js +20 -2
- package/lib/cli/webpack/plugins/copy.mjs +3 -0
- package/lib/cli/webpack/plugins/index.js +4 -2
- package/lib/cli/webpack/plugins/index.mjs +3 -0
- package/package.json +2 -2
- package/rollup.config.js +5 -4
- package/.changeset/README.md +0 -8
- package/.changeset/config.json +0 -11
- package/lib/cli/acorn.js +0 -3
- package/lib/cli/angular.js +0 -3
- package/lib/cli/babel.js +0 -3
- package/lib/cli/estree.js +0 -3
- package/lib/cli/flow.js +0 -3
- package/lib/cli/glimmer.js +0 -3
- package/lib/cli/graphql.js +0 -3
- package/lib/cli/html.js +0 -3
- package/lib/cli/markdown.js +0 -3
- package/lib/cli/meriyah.js +0 -3
- package/lib/cli/msmain.js +0 -65
- package/lib/cli/postcss.js +0 -3
- package/lib/cli/typescript.js +0 -3
- package/lib/cli/yaml.js +0 -3
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{fileURLToPath as t}from"node:url";import r from"fs";import e,{dirname as n,isAbsolute as o,join as u,resolve as c}from"path";import i from"prettier";import"./getJavascriptfile.mjs";import"net";var a="object"==typeof global&&global&&global.Object===Object&&global,f="object"==typeof self&&self&&self.Object===Object&&self,s=a||f||Function("return this")(),l=s.Symbol,p=Object.prototype,v=p.hasOwnProperty,b=p.toString,y=l?l.toStringTag:void 0;var h=Object.prototype.toString;var j=l?l.toStringTag:void 0;function d(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?function(t){var r=v.call(t,y),e=t[y];try{t[y]=void 0;var n=!0}catch(t){}var o=b.call(t);return n&&(r?t[y]=e:delete t[y]),o}(t):function(t){return h.call(t)}(t)}function _(t){return null!=t&&"object"==typeof t}function g(t){return"symbol"==typeof t||_(t)&&"[object Symbol]"==d(t)}function w(t,r){for(var e=-1,n=null==t?0:t.length,o=Array(n);++e<n;)o[e]=r(t[e],e,t);return o}var O=Array.isArray,m=l?l.prototype:void 0,A=m?m.toString:void 0;function S(t){if("string"==typeof t)return t;if(O(t))return w(t,S)+"";if(g(t))return A?A.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function x(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}function z(t){return t}function P(t){if(!x(t))return!1;var r=d(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}var F,E=s["__core-js_shared__"],k=(F=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||""))?"Symbol(src)_1."+F:"";var U=Function.prototype.toString;function I(t){if(null!=t){try{return U.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var M=/^\[object .+?Constructor\]$/,B=Function.prototype,D=Object.prototype,T=B.toString,$=D.hasOwnProperty,C=RegExp("^"+T.call($).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function L(t){return!(!x(t)||(r=t,k&&k in r))&&(P(t)?C:M).test(I(t));var r}function R(t,r){var e=function(t,r){return null==t?void 0:t[r]}(t,r);return L(e)?e:void 0}var N=R(s,"WeakMap"),V=Object.create,W=function(){function t(){}return function(r){if(!x(r))return{};if(V)return V(r);t.prototype=r;var e=new t;return t.prototype=void 0,e}}();function q(t,r){var e=-1,n=t.length;for(r||(r=Array(n));++e<n;)r[e]=t[e];return r}var G=Date.now;var J,Q,H,K=function(){try{var t=R(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),X=K?function(t,r){return K(t,"toString",{configurable:!0,enumerable:!1,value:(e=r,function(){return e}),writable:!0});var e}:z,Y=(J=X,Q=0,H=0,function(){var t=G(),r=16-(t-H);if(H=t,r>0){if(++Q>=800)return arguments[0]}else Q=0;return J.apply(void 0,arguments)});function Z(t){return t!=t}function tt(t,r){return!!(null==t?0:t.length)&&function(t,r,e){return r==r?function(t,r,e){for(var n=e-1,o=t.length;++n<o;)if(t[n]===r)return n;return-1}(t,r,e):function(t,r,e){for(var n=t.length,o=e+-1;++o<n;)if(r(t[o],o,t))return o;return-1}(t,Z,e)}(t,r,0)>-1}var rt=/^(?:0|[1-9]\d*)$/;function et(t,r){var e=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==e||"symbol"!=e&&rt.test(t))&&t>-1&&t%1==0&&t<r}function nt(t,r,e){"__proto__"==r&&K?K(t,r,{configurable:!0,enumerable:!0,value:e,writable:!0}):t[r]=e}function ot(t,r){return t===r||t!=t&&r!=r}var ut=Object.prototype.hasOwnProperty;function ct(t,r,e){var n=t[r];ut.call(t,r)&&ot(n,e)&&(void 0!==e||r in t)||nt(t,r,e)}function it(t,r,e,n){var o=!e;e||(e={});for(var u=-1,c=r.length;++u<c;){var i=r[u],a=void 0;void 0===a&&(a=t[i]),o?nt(e,i,a):ct(e,i,a)}return e}var at=Math.max;function ft(t,r,e){return r=at(void 0===r?t.length-1:r,0),function(){for(var n=arguments,o=-1,u=at(n.length-r,0),c=Array(u);++o<u;)c[o]=n[r+o];o=-1;for(var i=Array(r+1);++o<r;)i[o]=n[o];return i[r]=e(c),function(t,r,e){switch(e.length){case 0:return t.call(r);case 1:return t.call(r,e[0]);case 2:return t.call(r,e[0],e[1]);case 3:return t.call(r,e[0],e[1],e[2])}return t.apply(r,e)}(t,this,i)}}function st(t,r){return Y(ft(t,r,z),t+"")}function lt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}function pt(t){return null!=t&<(t.length)&&!P(t)}var vt=Object.prototype;function bt(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||vt)}function yt(t){return _(t)&&"[object Arguments]"==d(t)}var ht=Object.prototype,jt=ht.hasOwnProperty,dt=ht.propertyIsEnumerable,_t=yt(function(){return arguments}())?yt:function(t){return _(t)&&jt.call(t,"callee")&&!dt.call(t,"callee")};var gt="object"==typeof exports&&exports&&!exports.nodeType&&exports,wt=gt&&"object"==typeof module&&module&&!module.nodeType&&module,Ot=wt&&wt.exports===gt?s.Buffer:void 0,mt=(Ot?Ot.isBuffer:void 0)||function(){return!1},At={};function St(t){return function(r){return t(r)}}At["[object Float32Array]"]=At["[object Float64Array]"]=At["[object Int8Array]"]=At["[object Int16Array]"]=At["[object Int32Array]"]=At["[object Uint8Array]"]=At["[object Uint8ClampedArray]"]=At["[object Uint16Array]"]=At["[object Uint32Array]"]=!0,At["[object Arguments]"]=At["[object Array]"]=At["[object ArrayBuffer]"]=At["[object Boolean]"]=At["[object DataView]"]=At["[object Date]"]=At["[object Error]"]=At["[object Function]"]=At["[object Map]"]=At["[object Number]"]=At["[object Object]"]=At["[object RegExp]"]=At["[object Set]"]=At["[object String]"]=At["[object WeakMap]"]=!1;var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,zt=xt&&"object"==typeof module&&module&&!module.nodeType&&module,Pt=zt&&zt.exports===xt&&a.process,Ft=function(){try{var t=zt&&zt.require&&zt.require("util").types;return t||Pt&&Pt.binding&&Pt.binding("util")}catch(t){}}(),Et=Ft&&Ft.isTypedArray,kt=Et?St(Et):function(t){return _(t)&<(t.length)&&!!At[d(t)]},Ut=Object.prototype.hasOwnProperty;function It(t,r){var e=O(t),n=!e&&_t(t),o=!e&&!n&&mt(t),u=!e&&!n&&!o&&kt(t),c=e||n||o||u,i=c?function(t,r){for(var e=-1,n=Array(t);++e<t;)n[e]=r(e);return n}(t.length,String):[],a=i.length;for(var f in t)!r&&!Ut.call(t,f)||c&&("length"==f||o&&("offset"==f||"parent"==f)||u&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||et(f,a))||i.push(f);return i}function Mt(t,r){return function(e){return t(r(e))}}var Bt=Mt(Object.keys,Object),Dt=Object.prototype.hasOwnProperty;function Tt(t){if(!bt(t))return Bt(t);var r=[];for(var e in Object(t))Dt.call(t,e)&&"constructor"!=e&&r.push(e);return r}function $t(t){return pt(t)?It(t):Tt(t)}var Ct=Object.prototype.hasOwnProperty;function Lt(t){if(!x(t))return function(t){var r=[];if(null!=t)for(var e in Object(t))r.push(e);return r}(t);var r=bt(t),e=[];for(var n in t)("constructor"!=n||!r&&Ct.call(t,n))&&e.push(n);return e}function Rt(t){return pt(t)?It(t,!0):Lt(t)}var Nt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vt=/^\w*$/;function Wt(t,r){if(O(t))return!1;var e=typeof t;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=t&&!g(t))||(Vt.test(t)||!Nt.test(t)||null!=r&&t in Object(r))}var qt=R(Object,"create");var Gt=Object.prototype.hasOwnProperty;var Jt=Object.prototype.hasOwnProperty;function Qt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}function Ht(t,r){for(var e=t.length;e--;)if(ot(t[e][0],r))return e;return-1}Qt.prototype.clear=function(){this.__data__=qt?qt(null):{},this.size=0},Qt.prototype.delete=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Qt.prototype.get=function(t){var r=this.__data__;if(qt){var e=r[t];return"__lodash_hash_undefined__"===e?void 0:e}return Gt.call(r,t)?r[t]:void 0},Qt.prototype.has=function(t){var r=this.__data__;return qt?void 0!==r[t]:Jt.call(r,t)},Qt.prototype.set=function(t,r){var e=this.__data__;return this.size+=this.has(t)?0:1,e[t]=qt&&void 0===r?"__lodash_hash_undefined__":r,this};var Kt=Array.prototype.splice;function Xt(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}Xt.prototype.clear=function(){this.__data__=[],this.size=0},Xt.prototype.delete=function(t){var r=this.__data__,e=Ht(r,t);return!(e<0)&&(e==r.length-1?r.pop():Kt.call(r,e,1),--this.size,!0)},Xt.prototype.get=function(t){var r=this.__data__,e=Ht(r,t);return e<0?void 0:r[e][1]},Xt.prototype.has=function(t){return Ht(this.__data__,t)>-1},Xt.prototype.set=function(t,r){var e=this.__data__,n=Ht(e,t);return n<0?(++this.size,e.push([t,r])):e[n][1]=r,this};var Yt=R(s,"Map");function Zt(t,r){var e,n,o=t.__data__;return("string"==(n=typeof(e=r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==e:null===e)?o["string"==typeof r?"string":"hash"]:o.map}function tr(t){var r=-1,e=null==t?0:t.length;for(this.clear();++r<e;){var n=t[r];this.set(n[0],n[1])}}tr.prototype.clear=function(){this.size=0,this.__data__={hash:new Qt,map:new(Yt||Xt),string:new Qt}},tr.prototype.delete=function(t){var r=Zt(this,t).delete(t);return this.size-=r?1:0,r},tr.prototype.get=function(t){return Zt(this,t).get(t)},tr.prototype.has=function(t){return Zt(this,t).has(t)},tr.prototype.set=function(t,r){var e=Zt(this,t),n=e.size;return e.set(t,r),this.size+=e.size==n?0:1,this};function rr(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],u=e.cache;if(u.has(o))return u.get(o);var c=t.apply(this,n);return e.cache=u.set(o,c)||u,c};return e.cache=new(rr.Cache||tr),e}rr.Cache=tr;var er=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nr=/\\(\\)?/g,or=function(t){var r=rr(t,function(t){return 500===e.size&&e.clear(),t}),e=r.cache;return r}(function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(er,function(t,e,n,o){r.push(n?o.replace(nr,"$1"):e||t)}),r});function ur(t,r){return O(t)?t:Wt(t,r)?[t]:or(function(t){return null==t?"":S(t)}(t))}function cr(t){if("string"==typeof t||g(t))return t;var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}function ir(t,r){for(var e=0,n=(r=ur(r,t)).length;null!=t&&e<n;)t=t[cr(r[e++])];return e&&e==n?t:void 0}function ar(t,r,e){var n=null==t?void 0:ir(t,r);return void 0===n?e:n}function fr(t,r){for(var e=-1,n=r.length,o=t.length;++e<n;)t[o+e]=r[e];return t}var sr=l?l.isConcatSpreadable:void 0;function lr(t){return O(t)||_t(t)||!!(sr&&t&&t[sr])}function pr(t,r,e,n,o){var u=-1,c=t.length;for(e||(e=lr),o||(o=[]);++u<c;){var i=t[u];e(i)?fr(o,i):n||(o[o.length]=i)}return o}function vr(t){return(null==t?0:t.length)?pr(t):[]}function br(t){return Y(ft(t,void 0,vr),t+"")}var yr=Mt(Object.getPrototypeOf,Object),hr=Function.prototype,jr=Object.prototype,dr=hr.toString,_r=jr.hasOwnProperty,gr=dr.call(Object);function wr(t){if(!_(t)||"[object Object]"!=d(t))return!1;var r=yr(t);if(null===r)return!0;var e=_r.call(r,"constructor")&&r.constructor;return"function"==typeof e&&e instanceof e&&dr.call(e)==gr}function Or(t){var r=this.__data__=new Xt(t);this.size=r.size}Or.prototype.clear=function(){this.__data__=new Xt,this.size=0},Or.prototype.delete=function(t){var r=this.__data__,e=r.delete(t);return this.size=r.size,e},Or.prototype.get=function(t){return this.__data__.get(t)},Or.prototype.has=function(t){return this.__data__.has(t)},Or.prototype.set=function(t,r){var e=this.__data__;if(e instanceof Xt){var n=e.__data__;if(!Yt||n.length<199)return n.push([t,r]),this.size=++e.size,this;e=this.__data__=new tr(n)}return e.set(t,r),this.size=e.size,this};var mr="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ar=mr&&"object"==typeof module&&module&&!module.nodeType&&module,Sr=Ar&&Ar.exports===mr?s.Buffer:void 0,xr=Sr?Sr.allocUnsafe:void 0;function zr(t,r){if(r)return t.slice();var e=t.length,n=xr?xr(e):new t.constructor(e);return t.copy(n),n}function Pr(){return[]}var Fr=Object.prototype.propertyIsEnumerable,Er=Object.getOwnPropertySymbols,kr=Er?function(t){return null==t?[]:(t=Object(t),function(t,r){for(var e=-1,n=null==t?0:t.length,o=0,u=[];++e<n;){var c=t[e];r(c,e,t)&&(u[o++]=c)}return u}(Er(t),function(r){return Fr.call(t,r)}))}:Pr;var Ur=Object.getOwnPropertySymbols?function(t){for(var r=[];t;)fr(r,kr(t)),t=yr(t);return r}:Pr;function Ir(t,r,e){var n=r(t);return O(t)?n:fr(n,e(t))}function Mr(t){return Ir(t,$t,kr)}function Br(t){return Ir(t,Rt,Ur)}var Dr=R(s,"DataView"),Tr=R(s,"Promise"),$r=R(s,"Set"),Cr="[object Map]",Lr="[object Promise]",Rr="[object Set]",Nr="[object WeakMap]",Vr="[object DataView]",Wr=I(Dr),qr=I(Yt),Gr=I(Tr),Jr=I($r),Qr=I(N),Hr=d;(Dr&&Hr(new Dr(new ArrayBuffer(1)))!=Vr||Yt&&Hr(new Yt)!=Cr||Tr&&Hr(Tr.resolve())!=Lr||$r&&Hr(new $r)!=Rr||N&&Hr(new N)!=Nr)&&(Hr=function(t){var r=d(t),e="[object Object]"==r?t.constructor:void 0,n=e?I(e):"";if(n)switch(n){case Wr:return Vr;case qr:return Cr;case Gr:return Lr;case Jr:return Rr;case Qr:return Nr}return r});var Kr=Object.prototype.hasOwnProperty;var Xr=s.Uint8Array;function Yr(t){var r=new t.constructor(t.byteLength);return new Xr(r).set(new Xr(t)),r}var Zr=/\w*$/;var te=l?l.prototype:void 0,re=te?te.valueOf:void 0;function ee(t,r){var e=r?Yr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.length)}function ne(t,r,e){var n,o,u,c=t.constructor;switch(r){case"[object ArrayBuffer]":return Yr(t);case"[object Boolean]":case"[object Date]":return new c(+t);case"[object DataView]":return function(t,r){var e=r?Yr(t.buffer):t.buffer;return new t.constructor(e,t.byteOffset,t.byteLength)}(t,e);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ee(t,e);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(t);case"[object RegExp]":return(u=new(o=t).constructor(o.source,Zr.exec(o))).lastIndex=o.lastIndex,u;case"[object Symbol]":return n=t,re?Object(re.call(n)):{}}}function oe(t){return"function"!=typeof t.constructor||bt(t)?{}:W(yr(t))}var ue=Ft&&Ft.isMap,ce=ue?St(ue):function(t){return _(t)&&"[object Map]"==Hr(t)};var ie=Ft&&Ft.isSet,ae=ie?St(ie):function(t){return _(t)&&"[object Set]"==Hr(t)},fe="[object Arguments]",se="[object Function]",le="[object Object]",pe={};function ve(t,r,e,n,o,u){var c,i=1&r,a=2&r,f=4&r;if(e&&(c=o?e(t,n,o,u):e(t)),void 0!==c)return c;if(!x(t))return t;var s=O(t);if(s){if(c=function(t){var r=t.length,e=new t.constructor(r);return r&&"string"==typeof t[0]&&Kr.call(t,"index")&&(e.index=t.index,e.input=t.input),e}(t),!i)return q(t,c)}else{var l=Hr(t),p=l==se||"[object GeneratorFunction]"==l;if(mt(t))return zr(t,i);if(l==le||l==fe||p&&!o){if(c=a||p?{}:oe(t),!i)return a?function(t,r){return it(t,Ur(t),r)}(t,function(t,r){return t&&it(r,Rt(r),t)}(c,t)):function(t,r){return it(t,kr(t),r)}(t,function(t,r){return t&&it(r,$t(r),t)}(c,t))}else{if(!pe[l])return o?t:{};c=ne(t,l,i)}}u||(u=new Or);var v=u.get(t);if(v)return v;u.set(t,c),ae(t)?t.forEach(function(n){c.add(ve(n,r,e,n,t,u))}):ce(t)&&t.forEach(function(n,o){c.set(o,ve(n,r,e,o,t,u))});var b=s?void 0:(f?a?Br:Mr:a?Rt:$t)(t);return function(t,r){for(var e=-1,n=null==t?0:t.length;++e<n&&!1!==r(t[e],e,t););}(b||t,function(n,o){b&&(n=t[o=n]),ct(c,o,ve(n,r,e,o,t,u))}),c}pe[fe]=pe["[object Array]"]=pe["[object ArrayBuffer]"]=pe["[object DataView]"]=pe["[object Boolean]"]=pe["[object Date]"]=pe["[object Float32Array]"]=pe["[object Float64Array]"]=pe["[object Int8Array]"]=pe["[object Int16Array]"]=pe["[object Int32Array]"]=pe["[object Map]"]=pe["[object Number]"]=pe[le]=pe["[object RegExp]"]=pe["[object Set]"]=pe["[object String]"]=pe["[object Symbol]"]=pe["[object Uint8Array]"]=pe["[object Uint8ClampedArray]"]=pe["[object Uint16Array]"]=pe["[object Uint32Array]"]=!0,pe["[object Error]"]=pe[se]=pe["[object WeakMap]"]=!1;function be(t){return ve(t,5)}function ye(t){var r=-1,e=null==t?0:t.length;for(this.__data__=new tr;++r<e;)this.add(t[r])}function he(t,r){for(var e=-1,n=null==t?0:t.length;++e<n;)if(r(t[e],e,t))return!0;return!1}function je(t,r){return t.has(r)}ye.prototype.add=ye.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ye.prototype.has=function(t){return this.__data__.has(t)};function de(t,r,e,n,o,u){var c=1&e,i=t.length,a=r.length;if(i!=a&&!(c&&a>i))return!1;var f=u.get(t),s=u.get(r);if(f&&s)return f==r&&s==t;var l=-1,p=!0,v=2&e?new ye:void 0;for(u.set(t,r),u.set(r,t);++l<i;){var b=t[l],y=r[l];if(n)var h=c?n(y,b,l,r,t,u):n(b,y,l,t,r,u);if(void 0!==h){if(h)continue;p=!1;break}if(v){if(!he(r,function(t,r){if(!je(v,r)&&(b===t||o(b,t,e,n,u)))return v.push(r)})){p=!1;break}}else if(b!==y&&!o(b,y,e,n,u)){p=!1;break}}return u.delete(t),u.delete(r),p}function _e(t){var r=-1,e=Array(t.size);return t.forEach(function(t,n){e[++r]=[n,t]}),e}function ge(t){var r=-1,e=Array(t.size);return t.forEach(function(t){e[++r]=t}),e}var we=l?l.prototype:void 0,Oe=we?we.valueOf:void 0;var me=Object.prototype.hasOwnProperty;var Ae="[object Arguments]",Se="[object Array]",xe="[object Object]",ze=Object.prototype.hasOwnProperty;function Pe(t,r,e,n,o,u){var c=O(t),i=O(r),a=c?Se:Hr(t),f=i?Se:Hr(r),s=(a=a==Ae?xe:a)==xe,l=(f=f==Ae?xe:f)==xe,p=a==f;if(p&&mt(t)){if(!mt(r))return!1;c=!0,s=!1}if(p&&!s)return u||(u=new Or),c||kt(t)?de(t,r,e,n,o,u):function(t,r,e,n,o,u,c){switch(e){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!u(new Xr(t),new Xr(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return ot(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var i=_e;case"[object Set]":var a=1&n;if(i||(i=ge),t.size!=r.size&&!a)return!1;var f=c.get(t);if(f)return f==r;n|=2,c.set(t,r);var s=de(i(t),i(r),n,o,u,c);return c.delete(t),s;case"[object Symbol]":if(Oe)return Oe.call(t)==Oe.call(r)}return!1}(t,r,a,e,n,o,u);if(!(1&e)){var v=s&&ze.call(t,"__wrapped__"),b=l&&ze.call(r,"__wrapped__");if(v||b){var y=v?t.value():t,h=b?r.value():r;return u||(u=new Or),o(y,h,e,n,u)}}return!!p&&(u||(u=new Or),function(t,r,e,n,o,u){var c=1&e,i=Mr(t),a=i.length;if(a!=Mr(r).length&&!c)return!1;for(var f=a;f--;){var s=i[f];if(!(c?s in r:me.call(r,s)))return!1}var l=u.get(t),p=u.get(r);if(l&&p)return l==r&&p==t;var v=!0;u.set(t,r),u.set(r,t);for(var b=c;++f<a;){var y=t[s=i[f]],h=r[s];if(n)var j=c?n(h,y,s,r,t,u):n(y,h,s,t,r,u);if(!(void 0===j?y===h||o(y,h,e,n,u):j)){v=!1;break}b||(b="constructor"==s)}if(v&&!b){var d=t.constructor,_=r.constructor;d==_||!("constructor"in t)||!("constructor"in r)||"function"==typeof d&&d instanceof d&&"function"==typeof _&&_ instanceof _||(v=!1)}return u.delete(t),u.delete(r),v}(t,r,e,n,o,u))}function Fe(t,r,e,n,o){return t===r||(null==t||null==r||!_(t)&&!_(r)?t!=t&&r!=r:Pe(t,r,e,n,Fe,o))}function Ee(t){return t==t&&!x(t)}function ke(t,r){return function(e){return null!=e&&(e[t]===r&&(void 0!==r||t in Object(e)))}}function Ue(t){var r=function(t){for(var r=$t(t),e=r.length;e--;){var n=r[e],o=t[n];r[e]=[n,o,Ee(o)]}return r}(t);return 1==r.length&&r[0][2]?ke(r[0][0],r[0][1]):function(e){return e===t||function(t,r,e,n){var o=e.length,u=o;if(null==t)return!u;for(t=Object(t);o--;){var c=e[o];if(c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<u;){var i=(c=e[o])[0],a=t[i],f=c[1];if(c[2]){if(void 0===a&&!(i in t))return!1}else if(!Fe(f,a,3,n,new Or))return!1}return!0}(e,0,r)}}function Ie(t,r){return null!=t&&r in Object(t)}function Me(t,r,e){for(var n=-1,o=(r=ur(r,t)).length,u=!1;++n<o;){var c=cr(r[n]);if(!(u=null!=t&&e(t,c)))break;t=t[c]}return u||++n!=o?u:!!(o=null==t?0:t.length)&<(o)&&et(c,o)&&(O(t)||_t(t))}function Be(t,r){return null!=t&&Me(t,r,Ie)}function De(t){return Wt(t)?(r=cr(t),function(t){return null==t?void 0:t[r]}):function(t){return function(r){return ir(r,t)}}(t);var r}function Te(t){return"function"==typeof t?t:null==t?z:"object"==typeof t?O(t)?function(t,r){return Wt(t)&&Ee(r)?ke(cr(t),r):function(e){var n=ar(e,t);return void 0===n&&n===r?Be(e,t):Fe(r,n,3)}}(t[0],t[1]):Ue(t):De(t)}function $e(t,r,e,n){for(var o=-1,u=null==t?0:t.length;++o<u;){var c=t[o];r(n,c,e(c),t)}return n}var Ce=function(t,r,e){for(var n=-1,o=Object(t),u=e(t),c=u.length;c--;){var i=u[++n];if(!1===r(o[i],i,o))break}return t};function Le(t,r){return t&&Ce(t,r,$t)}var Re,Ne=(Re=Le,function(t,r){if(null==t)return t;if(!pt(t))return Re(t,r);for(var e=t.length,n=-1,o=Object(t);++n<e&&!1!==r(o[n],n,o););return t});function Ve(t,r,e,n){return Ne(t,function(t,o,u){r(n,t,e(t),u)}),n}function We(t,r,e){(void 0!==e&&!ot(t[r],e)||void 0===e&&!(r in t))&&nt(t,r,e)}function qe(t){return _(t)&&pt(t)}function Ge(t,r){if(("constructor"!==r||"function"!=typeof t[r])&&"__proto__"!=r)return t[r]}function Je(t,r,e,n,o,u,c){var i=Ge(t,e),a=Ge(r,e),f=c.get(a);if(f)We(t,e,f);else{var s,l=u?u(i,a,e+"",t,r,c):void 0,p=void 0===l;if(p){var v=O(a),b=!v&&mt(a),y=!v&&!b&&kt(a);l=a,v||b||y?O(i)?l=i:qe(i)?l=q(i):b?(p=!1,l=zr(a,!0)):y?(p=!1,l=ee(a,!0)):l=[]:wr(a)||_t(a)?(l=i,_t(i)?l=it(s=i,Rt(s)):x(i)&&!P(i)||(l=oe(a))):p=!1}p&&(c.set(a,l),o(l,a,n,u,c),c.delete(a)),We(t,e,l)}}function Qe(t,r,e,n,o){t!==r&&Ce(r,function(u,c){if(o||(o=new Or),x(u))Je(t,r,c,e,Qe,n,o);else{var i=n?n(Ge(t,c),u,c+"",t,r,o):void 0;void 0===i&&(i=u),We(t,c,i)}},Rt)}var He,Ke=(He=function(t,r,e,n){Qe(t,r,e,n)},st(function(t,r){var e=-1,n=r.length,o=n>1?r[n-1]:void 0,u=n>2?r[2]:void 0;for(o=He.length>3&&"function"==typeof o?(n--,o):void 0,u&&function(t,r,e){if(!x(e))return!1;var n=typeof r;return!!("number"==n?pt(e)&&et(r,e.length):"string"==n&&r in e)&&ot(e[r],t)}(r[0],r[1],u)&&(o=n<3?void 0:o,n=1),t=Object(t);++e<n;){var c=r[e];c&&He(t,c,e,o)}return t}));var Xe=Object.prototype.hasOwnProperty;function Ye(t,r){return null!=t&&Xe.call(t,r)}function Ze(t,r){return null!=t&&Me(t,r,Ye)}function tn(t){return null==t?[]:function(t,r){return w(r,function(r){return t[r]})}(t,$t(t))}function rn(t,r){return r.length<2?t:ir(t,function(t,r,e){var n=-1,o=t.length;r<0&&(r=-r>o?0:o+r),(e=e>o?o:e)<0&&(e+=o),o=r>e?0:e-r>>>0,r>>>=0;for(var u=Array(o);++n<o;)u[n]=t[n+r];return u}(r,0,-1))}var en=Object.prototype.hasOwnProperty;function nn(t){if(null==t)return!0;if(pt(t)&&(O(t)||"string"==typeof t||"function"==typeof t.splice||mt(t)||kt(t)||_t(t)))return!t.length;var r=Hr(t);if("[object Map]"==r||"[object Set]"==r)return!t.size;if(bt(t))return!Tt(t).length;for(var e in t)if(en.call(t,e))return!1;return!0}function on(t){return null===t}function un(t){return void 0===t}var cn,an,fn=(cn=function(t,r,e){nt(t,e,r)},function(t,r){var e=O(t)?$e:Ve,n=an?an():{};return e(t,cn,Te(r),n)});function sn(t,r){var e={};return r=Te(r),Le(t,function(t,n,o){nt(e,n,r(t,n,o))}),e}var ln=Object.prototype.hasOwnProperty;function pn(t,r){var e=-1,n=(r=ur(r,t)).length;if(!n)return!0;for(;++e<n;){var o=cr(r[e]);if("__proto__"===o&&!ln.call(t,"__proto__"))return!1;if(("constructor"===o||"prototype"===o)&&e<n-1)return!1}var u=rn(t,r);return null==u||delete u[cr(function(t){var r=null==t?0:t.length;return r?t[r-1]:void 0}(r))]}function vn(t){return wr(t)?void 0:t}var bn=br(function(t,r){var e={};if(null==t)return e;var n=!1;r=w(r,function(r){return r=ur(r,t),n||(n=r.length>1),r}),it(t,Br(t),e),n&&(e=ve(e,7,vn));for(var o=r.length;o--;)pn(e,r[o]);return e});function yn(t,r,e,n){if(!x(t))return t;for(var o=-1,u=(r=ur(r,t)).length,c=u-1,i=t;null!=i&&++o<u;){var a=cr(r[o]),f=e;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=c){var s=i[a];void 0===(f=void 0)&&(f=x(s)?s:et(r[o+1])?[]:{})}ct(i,a,f),i=i[a]}return t}function hn(t,r){return function(t,r,e){for(var n=-1,o=r.length,u={};++n<o;){var c=r[n],i=ir(t,c);e(i,c)&&yn(u,ur(c,t),i)}return u}(t,r,function(r,e){return Be(t,e)})}var jn=br(function(t,r){return null==t?{}:hn(t,r)}),dn=$r&&1/ge(new $r([,-0]))[1]==1/0?function(t){return new $r(t)}:function(){};var _n=st(function(t){return function(t,r,e){var n=-1,o=tt,u=t.length,c=!0,i=[],a=i;if(u>=200){var f=dn(t);if(f)return ge(f);c=!1,o=je,a=new ye}else a=i;t:for(;++n<u;){var s=t[n],l=s;if(s=0!==s?s:0,c&&l==l){for(var p=a.length;p--;)if(a[p]===l)continue t;i.push(s)}else o(a,l,e)||(a!==i&&a.push(l),i.push(s))}return i}(pr(t,0,qe,!0))});const gn=n(t(import.meta.url));function wn(t){const e=r.readFileSync(t,"utf-8");return JSON.parse(e)}function On(t,r){return o(t)?t:u(r,t)}function mn(t){r.existsSync(t)&&r.rmdirSync(t,{recursive:!0}),r.mkdirSync(t,{recursive:!0})}function An(t,r){return O(t)&&O(r)?_n(t,r):x(t)&&x(r)?Ke(t,r,An):r}const Sn=(t,r)=>({...Ke(t,r,An)});function xn(t,n){if(r.existsSync(n)||r.mkdirSync(n),!r.existsSync(t))return;r.readdirSync(t).forEach(o=>{const u=e.join(t,o),c=e.join(n,o);r.lstatSync(u).isDirectory()?xn(u,c):r.copyFileSync(u,c)})}function zn(t){return t&&r.existsSync(t)?t:c(gn,"../template/index.html")}const Pn=async(t,e)=>{const n=await i.format(e,{semi:!0,singleQuote:!0,parser:"babel-ts"});return r.writeFileSync(t,n,"utf-8")},Fn=async(t,e)=>{const n=await i.format(e,{parser:"json"});return r.writeFileSync(t,n,"utf-8")},En=()=>"true"===process.env.SRC?"src/":"./";export{ar as a,On as b,xn as c,nn as d,zn as e,sn as f,En as g,Ze as h,wr as i,mn as j,fn as k,on as l,Sn as m,un as n,bn as o,jn as p,Fn as q,wn as r,$t as s,be as t,tn as v,Pn as w};
|
|
3
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,3 +1,61 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@rspack/core');
|
|
4
|
+
var devServer = require('@rspack/dev-server');
|
|
5
|
+
var webpack_config_index = require('./config/index.js');
|
|
6
|
+
require('../utils/index.js');
|
|
7
|
+
var utils_detectPort = require('../utils/detectPort.js');
|
|
8
|
+
|
|
9
|
+
class Webpack {
|
|
10
|
+
Compiler;
|
|
11
|
+
Config;
|
|
12
|
+
devServer = null;
|
|
13
|
+
type;
|
|
14
|
+
constructor(config, cwd, type) {
|
|
15
|
+
this.type = type;
|
|
16
|
+
try {
|
|
17
|
+
let defaultConfig = {};
|
|
18
|
+
if (type === 'development') {
|
|
19
|
+
defaultConfig = webpack_config_index.getDevConfig(config, cwd);
|
|
20
|
+
}
|
|
21
|
+
else if (type === 'analyzer') {
|
|
22
|
+
defaultConfig = webpack_config_index.getAnalyzerConfig(config, cwd);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
defaultConfig = webpack_config_index.getProductionConfig(config, cwd);
|
|
26
|
+
}
|
|
27
|
+
this.Config = defaultConfig;
|
|
28
|
+
this.Compiler = core.rspack(defaultConfig);
|
|
29
|
+
}
|
|
30
|
+
catch (error) {
|
|
31
|
+
console.log(error);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
runBuild = () => {
|
|
35
|
+
this.Compiler.run((err, stats) => {
|
|
36
|
+
if (err) {
|
|
37
|
+
console.log(err.message);
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
console.log(stats?.toString({
|
|
41
|
+
colors: true,
|
|
42
|
+
}));
|
|
43
|
+
for (const assetName of Object.keys(stats?.compilation?.assets || {})) {
|
|
44
|
+
console.log(`Generated asset: ${assetName}`);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
runServer = async (config) => {
|
|
49
|
+
const effectivePort = Number(config?.port ?? this.Config?.devServer?.port ?? 8080);
|
|
50
|
+
const availablePort = await utils_detectPort.detectPort(effectivePort);
|
|
51
|
+
this.devServer = new devServer.RspackDevServer({
|
|
52
|
+
...this.Config?.devServer,
|
|
53
|
+
...config,
|
|
54
|
+
port: availablePort,
|
|
55
|
+
}, this.Compiler);
|
|
56
|
+
await this.devServer?.start();
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
exports.Webpack = Webpack;
|
|
3
61
|
//# sourceMappingURL=Webpack.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{rspack as e}from"@rspack/core";import{RspackDevServer as r}from"@rspack/dev-server";import{g as o,a as t,b as s}from"./config/index.mjs";import"../utils/index.mjs";import{d as i}from"../utils/detectPort.mjs";class n{Compiler;Config;devServer=null;type;constructor(r,i,n){this.type=n;try{let a={};a="development"===n?o(r,i):"analyzer"===n?t(r,i):s(r,i),this.Config=a,this.Compiler=e(a)}catch(e){throw console.error("Webpack constructor failed:",e),e}}runBuild=()=>{this.Compiler.run((e,r)=>{if(e)console.log(e.message);else{console.log(r?.toString({colors:!0}));for(const e of Object.keys(r?.compilation?.assets||{}))console.log(`Generated asset: ${e}`)}})};runServer=async e=>{const o=Number(e?.port??this.Config?.devServer?.port??8080),t=await i(o);this.devServer=new r({...this.Config?.devServer,...e,port:t},this.Compiler),await(this.devServer?.start())}}export{n as W};
|
|
3
|
+
//# sourceMappingURL=Webpack.mjs.map
|
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var module$1 = require('module');
|
|
4
|
+
var webpack_config_production_config = require('./production.config.js');
|
|
5
|
+
|
|
6
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
7
|
+
const _require = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpack/config/analyzer.config.js', document.baseURI).href)));
|
|
8
|
+
var _getAnalyzerConfig = (config, cwd) => {
|
|
9
|
+
const { RsdoctorRspackPlugin } = _require('@rsdoctor/rspack-plugin');
|
|
10
|
+
const proConfig = webpack_config_production_config.getProConfig(config, cwd);
|
|
11
|
+
return {
|
|
12
|
+
...proConfig,
|
|
13
|
+
plugins: [...(proConfig.plugins || []), new RsdoctorRspackPlugin({})],
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports._getAnalyzerConfig = _getAnalyzerConfig;
|
|
3
18
|
//# sourceMappingURL=analyzer.config.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as o}from"module";import{g as r}from"./production.config.mjs";const s=o(import.meta.url);var t=(o,t)=>{const{RsdoctorRspackPlugin:n}=s("@rsdoctor/rspack-plugin"),p=r(o,t);return{...p,plugins:[...p.plugins||[],new n({})]}};export{t as _};
|
|
3
|
+
//# sourceMappingURL=analyzer.config.mjs.map
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var browserslist = [
|
|
4
|
+
'Chrome >= 80',
|
|
5
|
+
'Firefox >= 72',
|
|
6
|
+
'Safari >= 13.1',
|
|
7
|
+
'Edge >= 80',
|
|
8
|
+
'iOS >= 13.4',
|
|
9
|
+
'not IE 11',
|
|
10
|
+
'> 1%',
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.browserslist = browserslist;
|
|
3
14
|
//# sourceMappingURL=browsers.js.map
|
|
@@ -1,3 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var module$1 = require('module');
|
|
4
|
+
var core = require('@rspack/core');
|
|
5
|
+
var webpack_config_browsers = require('./browsers.js');
|
|
6
|
+
|
|
7
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
8
|
+
const _require = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpack/config/cssRules.js', document.baseURI).href)));
|
|
9
|
+
const getCssRules = (mode) => {
|
|
10
|
+
return [
|
|
11
|
+
{
|
|
12
|
+
test: /\.(less)$/,
|
|
13
|
+
exclude: /node_modules|public/,
|
|
14
|
+
use: [
|
|
15
|
+
mode === 'development' ? _require.resolve('style-loader') : core.CssExtractRspackPlugin.loader,
|
|
16
|
+
{
|
|
17
|
+
loader: _require.resolve('css-loader'),
|
|
18
|
+
options: {
|
|
19
|
+
modules: {
|
|
20
|
+
// 启用CSS模块化
|
|
21
|
+
localIdentName: '[name]__[local]--[hash:base64:5]',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
loader: _require.resolve('postcss-loader'),
|
|
27
|
+
options: {
|
|
28
|
+
postcssOptions: {
|
|
29
|
+
plugins: [
|
|
30
|
+
_require.resolve('postcss-short'),
|
|
31
|
+
_require('postcss-preset-env')({
|
|
32
|
+
browsers: webpack_config_browsers.browserslist,
|
|
33
|
+
autoprefixer: {
|
|
34
|
+
flexbox: 'no-2009',
|
|
35
|
+
},
|
|
36
|
+
stage: 3,
|
|
37
|
+
}),
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
loader: _require.resolve('less-loader'),
|
|
44
|
+
options: {
|
|
45
|
+
implementation: _require.resolve('less'),
|
|
46
|
+
lessOptions: {
|
|
47
|
+
javascriptEnabled: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
],
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.(css)$/,
|
|
55
|
+
use: [
|
|
56
|
+
mode === 'development' ? _require.resolve('style-loader') : core.CssExtractRspackPlugin.loader,
|
|
57
|
+
_require.resolve('css-loader'),
|
|
58
|
+
{
|
|
59
|
+
loader: _require.resolve('postcss-loader'),
|
|
60
|
+
options: {
|
|
61
|
+
postcssOptions: {
|
|
62
|
+
plugins: [
|
|
63
|
+
_require.resolve('postcss-short'),
|
|
64
|
+
_require('postcss-preset-env')({
|
|
65
|
+
browsers: webpack_config_browsers.browserslist,
|
|
66
|
+
autoprefixer: {
|
|
67
|
+
flexbox: 'no-2009',
|
|
68
|
+
},
|
|
69
|
+
stage: 3,
|
|
70
|
+
}),
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
];
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
exports.getCssRules = getCssRules;
|
|
3
81
|
//# sourceMappingURL=cssRules.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as s}from"module";import{CssExtractRspackPlugin as e}from"@rspack/core";import{b as o}from"./browsers.mjs";const r=s(import.meta.url),l=s=>[{test:/\.(less)$/,exclude:/node_modules|public/,use:["development"===s?r.resolve("style-loader"):e.loader,{loader:r.resolve("css-loader"),options:{modules:{localIdentName:"[name]__[local]--[hash:base64:5]"}}},{loader:r.resolve("postcss-loader"),options:{postcssOptions:{plugins:[r.resolve("postcss-short"),r("postcss-preset-env")({browsers:o,autoprefixer:{flexbox:"no-2009"},stage:3})]}}},{loader:r.resolve("less-loader"),options:{implementation:r.resolve("less"),lessOptions:{javascriptEnabled:!0}}}]},{test:/\.(css)$/,use:["development"===s?r.resolve("style-loader"):e.loader,r.resolve("css-loader"),{loader:r.resolve("postcss-loader"),options:{postcssOptions:{plugins:[r.resolve("postcss-short"),r("postcss-preset-env")({browsers:o,autoprefixer:{flexbox:"no-2009"},stage:3})]}}}]}];export{l as g};
|
|
3
|
+
//# sourceMappingURL=cssRules.mjs.map
|
|
@@ -1,3 +1,180 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utils_index = require('../../utils/index.js');
|
|
4
|
+
var webpack_config_cssRules = require('./cssRules.js');
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var core = require('@rspack/core');
|
|
7
|
+
var webpack_config_browsers = require('./browsers.js');
|
|
8
|
+
var webpack_config_framework_index = require('./framework/index.js');
|
|
9
|
+
|
|
10
|
+
const OMIT_NAMES_ALL = [
|
|
11
|
+
'name',
|
|
12
|
+
'routes',
|
|
13
|
+
'mpas',
|
|
14
|
+
'packages',
|
|
15
|
+
'microServiceMap',
|
|
16
|
+
'base',
|
|
17
|
+
'customHistoryApiFallback',
|
|
18
|
+
'outputPathDir',
|
|
19
|
+
'define',
|
|
20
|
+
'setting',
|
|
21
|
+
'framework',
|
|
22
|
+
'library',
|
|
23
|
+
'compression',
|
|
24
|
+
'terserOptions',
|
|
25
|
+
'htmlTemplatePath',
|
|
26
|
+
'locales',
|
|
27
|
+
'mfa',
|
|
28
|
+
'publicPathDir',
|
|
29
|
+
'provide',
|
|
30
|
+
'copy',
|
|
31
|
+
];
|
|
32
|
+
const getDefaultConfig = (cwd, config) => {
|
|
33
|
+
const webpackConfig = utils_index.omit(config, OMIT_NAMES_ALL);
|
|
34
|
+
let { base = '/', routes, htmlTemplatePath, outputPathDir = 'dist', define, provide, } = utils_index.pick(config, OMIT_NAMES_ALL);
|
|
35
|
+
base = /^\/.*\/$/.test(base) ? base : '/';
|
|
36
|
+
const fw = webpack_config_framework_index.getFrameworkConfig(config, config.mode);
|
|
37
|
+
let entry = config.entry || {};
|
|
38
|
+
const htmlPlugins = [];
|
|
39
|
+
if (utils_index.isEmpty(entry))
|
|
40
|
+
entry['index'] = path.resolve(cwd, 'src/main');
|
|
41
|
+
if (typeof entry['index'] == 'string') {
|
|
42
|
+
const tempPath = typeof htmlTemplatePath === 'string' ? htmlTemplatePath : htmlTemplatePath?.['index'];
|
|
43
|
+
const htmlpath = utils_index.getMpasPageHtml(tempPath);
|
|
44
|
+
htmlPlugins.push(new core.rspack.HtmlRspackPlugin({
|
|
45
|
+
template: htmlpath,
|
|
46
|
+
filename: `index.html`,
|
|
47
|
+
chunks: ['index'],
|
|
48
|
+
publicPath: base,
|
|
49
|
+
base,
|
|
50
|
+
templateParameters: {
|
|
51
|
+
base,
|
|
52
|
+
},
|
|
53
|
+
}));
|
|
54
|
+
config.entry = entry;
|
|
55
|
+
}
|
|
56
|
+
if (!utils_index.isEmpty(entry)) {
|
|
57
|
+
// 存在多entry,注册多个HtmlWebpackPlugin
|
|
58
|
+
Object.entries(entry).forEach(([key, value]) => {
|
|
59
|
+
if (key !== 'index') {
|
|
60
|
+
const tempPath = typeof htmlTemplatePath === 'string' ? htmlTemplatePath : htmlTemplatePath?.[key];
|
|
61
|
+
const htmlpath = utils_index.getMpasPageHtml(tempPath);
|
|
62
|
+
htmlPlugins.push(new core.rspack.HtmlRspackPlugin({
|
|
63
|
+
template: htmlpath,
|
|
64
|
+
filename: `${key}.html`,
|
|
65
|
+
chunks: [key],
|
|
66
|
+
publicPath: base,
|
|
67
|
+
base,
|
|
68
|
+
templateParameters: {
|
|
69
|
+
base,
|
|
70
|
+
},
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
const cssRules = webpack_config_cssRules.getCssRules(config.mode);
|
|
76
|
+
return utils_index.mergeConfig({
|
|
77
|
+
entry,
|
|
78
|
+
stats: 'minimal',
|
|
79
|
+
devServer: {
|
|
80
|
+
static: {
|
|
81
|
+
directory: path.resolve(cwd, 'src/.gant/public'),
|
|
82
|
+
publicPath: base,
|
|
83
|
+
},
|
|
84
|
+
compress: true,
|
|
85
|
+
historyApiFallback: utils_index.has(config, 'customHistoryApiFallback')
|
|
86
|
+
? config?.customHistoryApiFallback
|
|
87
|
+
: {
|
|
88
|
+
index: path.resolve(base, 'index.html'),
|
|
89
|
+
rewrites: [
|
|
90
|
+
{
|
|
91
|
+
from: /^\/public\/(.*)$/,
|
|
92
|
+
to: cxt => {
|
|
93
|
+
return path.resolve(base, cxt.match[1]);
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
module: {
|
|
100
|
+
rules: [
|
|
101
|
+
...fw.loaders,
|
|
102
|
+
{
|
|
103
|
+
test: /\.(ts|tsx)$/,
|
|
104
|
+
exclude: /node_modules/,
|
|
105
|
+
use: {
|
|
106
|
+
loader: require.resolve('swc-loader'),
|
|
107
|
+
options: {
|
|
108
|
+
jsc: {
|
|
109
|
+
target: 'es2020',
|
|
110
|
+
parser: {
|
|
111
|
+
syntax: 'typescript',
|
|
112
|
+
tsx: true,
|
|
113
|
+
dynamicImport: true,
|
|
114
|
+
},
|
|
115
|
+
transform: fw.swcTransform,
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
...cssRules,
|
|
121
|
+
{
|
|
122
|
+
test: /\.ejs$/,
|
|
123
|
+
use: {
|
|
124
|
+
loader: require.resolve('ejs-loader'),
|
|
125
|
+
options: {
|
|
126
|
+
esModule: false,
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
test: /\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/i,
|
|
132
|
+
use: [
|
|
133
|
+
{
|
|
134
|
+
loader: require.resolve('url-loader'),
|
|
135
|
+
options: {
|
|
136
|
+
limit: 8192, // 文件大小阈值,小于该值的文件会转换为 Data URL
|
|
137
|
+
name: '[name][hash].[ext]', // 输出文件名格式
|
|
138
|
+
outputPath: 'assets/', // 输出文件夹名称
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
resolve: {
|
|
146
|
+
extensions: ['.tsx', '.ts', '.js', '.jsx', '.json', ...fw.extensions],
|
|
147
|
+
alias: {
|
|
148
|
+
'@gant/setting': path.resolve(cwd, utils_index.getSrcPath(), '.gant/setting.ts'),
|
|
149
|
+
'@gant/microServiceMap': path.resolve(cwd, utils_index.getSrcPath(), '.gant/microServiceMap.ts'),
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
output: {
|
|
153
|
+
path: path.resolve(cwd, outputPathDir),
|
|
154
|
+
publicPath: base,
|
|
155
|
+
charset: true, //输出文件的编码`utf-8`
|
|
156
|
+
clean: true, //在生成新的打包输出之前清空path对应的dist目
|
|
157
|
+
},
|
|
158
|
+
plugins: [
|
|
159
|
+
...fw.plugins,
|
|
160
|
+
...htmlPlugins,
|
|
161
|
+
new core.rspack.ProvidePlugin({
|
|
162
|
+
...provide,
|
|
163
|
+
}),
|
|
164
|
+
new core.rspack.ProgressPlugin(), // 使用ProgressPlugin插件显示进度条
|
|
165
|
+
new core.rspack.DefinePlugin({
|
|
166
|
+
GANT_START_TIME: JSON.stringify(global.__gant_start_time),
|
|
167
|
+
BASE: JSON.stringify(base),
|
|
168
|
+
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
|
|
169
|
+
...utils_index.mapValues(define, value => JSON.stringify(value)),
|
|
170
|
+
}),
|
|
171
|
+
new core.rspack.BannerPlugin({
|
|
172
|
+
banner: `/*! @browserslist ${webpack_config_browsers.browserslist.join(', ')} */`,
|
|
173
|
+
raw: true,
|
|
174
|
+
}),
|
|
175
|
+
],
|
|
176
|
+
}, webpackConfig);
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
exports.getDefaultConfig = getDefaultConfig;
|
|
3
180
|
//# sourceMappingURL=default.config.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{createRequire as e}from"module";import{o as t,p as s,d as r,e as a,m as i,f as o,g as n,h as l}from"../../utils/index.mjs";import{g as m}from"./cssRules.mjs";import{resolve as p,posix as c}from"path";import{rspack as u}from"@rspack/core";import{b as g}from"./browsers.mjs";import{g as d}from"./framework/index.mjs";const f=e(import.meta.url),h=["name","routes","mpas","packages","microServiceMap","base","customHistoryApiFallback","outputPathDir","define","setting","framework","library","compression","terserOptions","htmlTemplatePath","locales","mfa","publicPathDir","provide","copy"],b=(e,b)=>{const x=t(b,h);let{base:y="/",routes:P,htmlTemplatePath:w,outputPathDir:j="dist",define:v,provide:k}=s(b,h);y=/^\/.*\/$/.test(y)?y:"/";const S=d(b,b.mode);let N=b.entry||{};const _=[];if(r(N)&&(N.index=p(e,"src/main")),"string"==typeof N.index){const e=a("string"==typeof w?w:w?.index);_.push(new u.HtmlRspackPlugin({template:e,filename:"index.html",chunks:["index"],publicPath:y,base:y,templateParameters:{base:y}})),b.entry=N}r(N)||Object.entries(N).forEach(([e,t])=>{if("index"!==e){const t=a("string"==typeof w?w:w?.[e]);_.push(new u.HtmlRspackPlugin({template:t,filename:`${e}.html`,chunks:[e],publicPath:y,base:y,templateParameters:{base:y}}))}});const O=m(b.mode);return i({entry:N,stats:"minimal",devServer:{static:{directory:p(e,"src/.gant/public"),publicPath:y},compress:!0,historyApiFallback:l(b,"customHistoryApiFallback")?b?.customHistoryApiFallback:{index:c.join(y,"index.html"),rewrites:[{from:/^\/public\/(.*)$/,to:e=>c.join(y,e.match[1])}]}},module:{rules:[...S.loaders,{test:/\.(ts|tsx)$/,exclude:/node_modules/,use:{loader:f.resolve("swc-loader"),options:{jsc:{target:"es2020",parser:{syntax:"typescript",tsx:!0,dynamicImport:!0},transform:S.swcTransform}}}},...O,{test:/\.ejs$/,use:{loader:f.resolve("ejs-loader"),options:{esModule:!1}}},{test:/\.(png|jpg|gif|woff|woff2|eot|ttf|svg)$/i,use:[{loader:f.resolve("url-loader"),options:{limit:8192,name:"[name][hash].[ext]",outputPath:"assets/"}}]}]},resolve:{extensions:[".tsx",".ts",".js",".jsx",".json",...S.extensions],alias:{"@gant/setting":p(e,n(),".gant/setting.ts"),"@gant/microServiceMap":p(e,n(),".gant/microServiceMap.ts")}},output:{path:p(e,j),publicPath:y,charset:!0,clean:!0},plugins:[...S.plugins,..._,new u.ProvidePlugin({...k}),new u.ProgressPlugin,new u.DefinePlugin({GANT_START_TIME:JSON.stringify(global.__gant_start_time),BASE:JSON.stringify(y),"process.env.NODE_ENV":JSON.stringify(process.env.NODE_ENV),...o(v,e=>JSON.stringify(e))}),new u.BannerPlugin({banner:`/*! @browserslist ${g.join(", ")} */`,raw:!0})]},x)};export{b as g};
|
|
3
|
+
//# sourceMappingURL=default.config.mjs.map
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var utils_index = require('../../utils/index.js');
|
|
4
|
+
var path = require('path');
|
|
5
|
+
var webpack_config_framework_index = require('./framework/index.js');
|
|
6
|
+
|
|
7
|
+
var _getDevlopmentConfig = (config, cwd) => {
|
|
8
|
+
const { base = '/' } = config;
|
|
9
|
+
const fw = webpack_config_framework_index.getFrameworkConfig(config, 'development');
|
|
10
|
+
return utils_index.mergeConfig({
|
|
11
|
+
mode: 'development',
|
|
12
|
+
devtool: 'eval-source-map',
|
|
13
|
+
devServer: {
|
|
14
|
+
port: 8080,
|
|
15
|
+
hot: true,
|
|
16
|
+
open: true,
|
|
17
|
+
client: { overlay: false },
|
|
18
|
+
static: {
|
|
19
|
+
directory: path.resolve(cwd, 'src/.gant/public'),
|
|
20
|
+
publicPath: base,
|
|
21
|
+
},
|
|
22
|
+
compress: true,
|
|
23
|
+
historyApiFallback: utils_index.has(config, 'customHistoryApiFallback')
|
|
24
|
+
? config?.customHistoryApiFallback
|
|
25
|
+
: {
|
|
26
|
+
index: path.resolve(base, 'index.html'),
|
|
27
|
+
rewrites: [
|
|
28
|
+
{
|
|
29
|
+
from: new RegExp(`${base}public/(.*)`),
|
|
30
|
+
to: cxt => {
|
|
31
|
+
if (cxt.match && cxt.match[1]) {
|
|
32
|
+
return path.resolve(base, cxt.match[1]);
|
|
33
|
+
}
|
|
34
|
+
return base;
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
resolve: {},
|
|
41
|
+
plugins: [...fw.devPlugins],
|
|
42
|
+
}, config);
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
exports._getDevlopmentConfig = _getDevlopmentConfig;
|
|
3
46
|
//# sourceMappingURL=development.config.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{m as e,h as o}from"../../utils/index.mjs";import{posix as t,resolve as r}from"path";import{g as i}from"./framework/index.mjs";var a=(a,s)=>{const{base:m="/"}=a,l=i(a,"development");return e({mode:"development",devtool:"eval-source-map",devServer:{port:8080,hot:!0,open:!0,client:{overlay:!1},static:{directory:r(s,"src/.gant/public"),publicPath:m},compress:!0,historyApiFallback:o(a,"customHistoryApiFallback")?a?.customHistoryApiFallback:{index:`${m}index.html`,rewrites:[{from:new RegExp(`${m}public/(.*)`),to:e=>e.match&&e.match[1]?t.join(m,e.match[1]):m}]}},resolve:{},plugins:[...l.devPlugins]},a)};export{a as _};
|
|
3
|
+
//# sourceMappingURL=development.config.mjs.map
|
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var webpack_config_framework_react = require('./react.js');
|
|
4
|
+
var webpack_config_framework_vue = require('./vue.js');
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Resolve the target framework from user config.
|
|
8
|
+
* Priority: framework > default 'react'
|
|
9
|
+
*/
|
|
10
|
+
function resolveFramework(config) {
|
|
11
|
+
return config.framework || 'react';
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Get the full framework config for a given framework and mode.
|
|
15
|
+
*/
|
|
16
|
+
function getFrameworkConfig(config, mode) {
|
|
17
|
+
const fw = resolveFramework(config);
|
|
18
|
+
if (fw === 'vue') {
|
|
19
|
+
return webpack_config_framework_vue.getVueConfig();
|
|
20
|
+
}
|
|
21
|
+
return webpack_config_framework_react.getReactConfig(mode);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
exports.getFrameworkConfig = getFrameworkConfig;
|
|
25
|
+
exports.resolveFramework = resolveFramework;
|
|
3
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pluginReactRefresh = require('@rspack/plugin-react-refresh');
|
|
4
|
+
|
|
5
|
+
function getReactConfig(mode) {
|
|
6
|
+
const isDev = mode === 'development';
|
|
7
|
+
return {
|
|
8
|
+
swcTransform: {
|
|
9
|
+
react: {
|
|
10
|
+
runtime: 'automatic',
|
|
11
|
+
development: isDev,
|
|
12
|
+
refresh: isDev,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
loaders: [],
|
|
16
|
+
plugins: [],
|
|
17
|
+
extensions: [],
|
|
18
|
+
tsConfigSuffix: 'react',
|
|
19
|
+
devPlugins: isDev ? [new pluginReactRefresh.ReactRefreshRspackPlugin({ overlay: false })] : [],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
exports.getReactConfig = getReactConfig;
|
|
3
24
|
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import{ReactRefreshRspackPlugin as e}from"@rspack/plugin-react-refresh";function r(r){const n="development"===r;return{swcTransform:{react:{runtime:"automatic",development:n,refresh:n}},loaders:[],plugins:[],extensions:[],tsConfigSuffix:"react",devPlugins:n?[new e]:[]}}export{r as g};
|
|
3
|
+
//# sourceMappingURL=react.mjs.map
|
|
@@ -1,3 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var module$1 = require('module');
|
|
4
|
+
|
|
5
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
6
|
+
const _require = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('webpack/config/framework/vue.js', document.baseURI).href)));
|
|
7
|
+
/**
|
|
8
|
+
* Vue framework configuration.
|
|
9
|
+
*
|
|
10
|
+
* Compatibility note:
|
|
11
|
+
* Rspack v2 does NOT have built-in Vue SFC support, but vue-loader@17 works
|
|
12
|
+
* through Rspack's webpack 5 plugin API compatibility layer.
|
|
13
|
+
* VueLoaderPlugin is compatible with Rspack's Compiler interface.
|
|
14
|
+
* Hot Module Replacement (HMR) works via vue-loader's built-in HMR support.
|
|
15
|
+
*/
|
|
16
|
+
function getVueConfig() {
|
|
17
|
+
const VueLoaderPlugin = _require('vue-loader').VueLoaderPlugin;
|
|
18
|
+
return {
|
|
19
|
+
swcTransform: {},
|
|
20
|
+
loaders: [
|
|
21
|
+
{
|
|
22
|
+
test: /\.vue$/,
|
|
23
|
+
loader: _require.resolve('vue-loader'),
|
|
24
|
+
},
|
|
25
|
+
],
|
|
26
|
+
plugins: [new VueLoaderPlugin()],
|
|
27
|
+
extensions: ['.vue'],
|
|
28
|
+
tsConfigSuffix: 'vue',
|
|
29
|
+
devPlugins: [],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.getVueConfig = getVueConfig;
|
|
3
34
|
//# sourceMappingURL=vue.js.map
|