@rspack/core
Advanced tools
Comparing version 0.0.0-20221208023045 to 0.0.0-20221209084707
@@ -1,1 +0,1 @@ | ||
!function(){var e,r,n,t,o,i,c,d,a,u={"./a.js":function(e,r,n){"use strict";e.exports=function(){return"This is a"}}},s={};function l(e){var r=s[e];if(void 0!==r)return r.exports;var n=s[e]={exports:{}},t={id:e,module:n,factory:u[e],require:l};return l.i.forEach(function(e){e(t)}),n=t.module,t.factory.call(n.exports,n,n.exports,t.require),n.exports}l.m=u,l.c=s,l.i=[],function(){var e,r,n,t={},o=l.c,i=[],c=[],d="idle",a=0,u=[];function s(e){d=e;for(var r=[],n=0;n<c.length;n++)r[n]=c[n].call(null,e);return Promise.all(r)}function f(){0==--a&&s("ready").then(function(){if(0===a){var e=u;u=[];for(var r=0;r<e.length;r++)e[r]()}})}function p(e){if("idle"!==d)throw Error("check() is only allowed in idle status");return s("check").then(l.hmrM).then(function(n){return n?s("prepare").then(function(){var t=[];return r=[],Promise.all(Object.keys(l.hmrC).reduce(function(e,o){return l.hmrC[o](n.c,n.r,n.m,e,r,t),e},[])).then(function(){var r;return r=function(){return e?v(e):s("ready").then(function(){return t})},0===a?r():new Promise(function(e){u.push(function(){e(r())})})})}):s(m()?"ready":"idle").then(function(){return null})})}function h(e){return"ready"!==d?Promise.resolve().then(function(){throw Error("apply() is only allowed in ready status (state: "+d+")")}):v(e)}function v(e){e=e||{},m();var t,o=r.map(function(r){return r(e)});r=void 0;var i=o.map(function(e){return e.error}).filter(Boolean);if(i.length>0)return s("abort").then(function(){throw i[0]});var c=s("dispose");o.forEach(function(e){e.dispose&&e.dispose()});var d=s("apply"),a=function(e){t||(t=e)},u=[];return o.forEach(function(e){if(e.apply){var r=e.apply(a);if(r)for(var n=0;n<r.length;n++)u.push(r[n])}}),Promise.all([c,d]).then(function(){return t?s("fail").then(function(){throw t}):n?v(e).then(function(e){return u.forEach(function(r){0>e.indexOf(r)&&e.push(r)}),e}):s("idle").then(function(){return u})})}function m(){if(n)return r||(r=[]),Object.keys(l.hmrI).forEach(function(e){n.forEach(function(n){l.hmrI[e](n,r)})}),n=void 0,!0}l.hmrD=t,l.i.push(function(u){var v,m,y,g=u.module,b=function(r,n){var t=o[n];if(!t)return r;var c=function(c){if(t.hot.active){if(o[c]){var d=o[c].parents;-1===d.indexOf(n)&&d.push(n)}else i=[n],e=c;-1===t.children.indexOf(c)&&t.children.push(c)}else console.log("[HMR] unexpected require("+c+") from disposed module "+n),i=[];return r(c)},u=function(e){return{configurable:!0,enumerable:!0,get:function(){return r[e]},set:function(n){r[e]=n}}};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&"e"!==l&&Object.defineProperty(c,l,u(l));return c.e=function(e){return function(e){switch(d){case"ready":s("prepare");case"prepare":return a++,e.then(f,f),e;default:return e}}(r.e(e))},c}(u.require,u.id);g.hot=(y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:m=e!==(v=u.id),_requireSelf:function(){i=g.parents.slice(),e=m?void 0:v,l(v)},active:!0,accept:function(e,r,n){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._acceptedDependencies[e[t]]=r||function(){},y._acceptedErrorHandlers[e[t]]=n;else y._acceptedDependencies[e]=r||function(){},y._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)y._declinedDependencies[e[r]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=y._disposeHandlers.indexOf(e);r>0&&y._disposeHandlers.splice(r,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":r=[],Object.keys(l.hmrI).forEach(function(e){l.hmrI[e](v,r)}),s("ready");break;case"ready":Object.keys(l.hmrI).forEach(function(e){l.hmrI[e](v,r)});break;case"prepare":case"check":case"dispose":case"apply":(n=n||[]).push(v)}},check:p,apply:h,status:function(e){if(!e)return d;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){var r=c.indexOf(e);r>=0&&c.splice(r,1)},data:t[v]},e=void 0,y),g.parents=i,g.children=[],i=[],u.require=b}),l.hmrC={},l.hmrI={}}(),e="webpack",r="data-webpack-loading",n=(n,t,o,i)=>{var c,d,a="chunk-"+n;if(!i){for(var u=document.getElementsByTagName("link"),s=0;s<u.length;s++){var l=u[s];if("stylesheet"==l.rel&&(l.href.startsWith(t)||l.getAttribute("href").startsWith(t)||l.getAttribute("data-webpack")==e+":"+a)){c=l;break}}if(!o)return c}c||(d=!0,(c=document.createElement("link")).setAttribute("data-webpack",e+":"+a),c.setAttribute(r,1),c.rel="stylesheet",c.href=t);var f=(e,n)=>{if(c.onerror=c.onload=null,c.removeAttribute(r),clearTimeout(p),n&&"load"!=n.type&&c.parentNode.removeChild(c),o(n),e)return e(n)};if(c.getAttribute(r)){var p=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload)}else f(void 0,{type:"load",target:c});return i?document.head.insertBefore(c,i):d&&document.head.appendChild(c),c},t=[],o=[],i=function(e){return{dispose:function(){},apply:function(){for(o.forEach(function(e){e[1].sheet.disabled=!1});t.length;){var e=t.pop();e.parentNode&&e.parentNode.removeChild(e)}for(;o.length;)o.pop();return[]}}},c=function(e){return Array.from(e.sheet.cssRules,function(e){return e.cssText.join()})},l.hmrC.css=function(e,r,d,a,u,s){u.push(i),e.forEach(function(e){var r=l.k(e),i=l.p+r,d=n(e,i);d&&a.push(new Promise(function(r,a){var u=n(e,i+(0>i.indexOf("?")?"?":"&")+"hmr="+Date.now(),function(n){if("load"!==n.type){var l=n&&n.type,f=n&&n.target&&n.target.src;error.message="Loading css hot update chunk "+e+" failed.\n("+l+": "+f+")",error.name="ChunkLoadError",error.type=l,error.request=f,a(error)}else{try{if(c(d)==c(u))return u.parentNode&&u.parentNode.removeChild(u),r()}catch(p){}s.push(i),u.sheet.disabled=!0,t.push(d),o.push([e,u]),r()}},d)}))})},function(){var e,r,n,t,o,i={main:0},c={};function d(r,n){return e=n,new Promise(function(e,n){var t=l.p+l.hu(r);c[r]=e;var o=Error();l.l(t,function(e){if(c[r]){c[r]=void 0;var t=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+r+" failed.\n("+t+": "+i+")",o.name="ChunkLoadError",o.type=t,o.request=i,n(o)}})})}function a(e){function c(e,r){for(var n=0;n<r.length;n++){var t=r[n];-1===e.indexOf(t)&&e.push(t)}}l.f&&delete l.f.jsonpHmr,r=void 0;var d,a={},u=[],s={},f=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var p in n)if(l.o(n,p)){var h,v=n[p];h=v?function(e){for(var r=[e],n={},t=r.map(function(e){return{chain:[e],id:e}});t.length>0;){var o=t.pop(),i=o.id,d=o.chain,a=l.c[i];if(a&&(!a.hot._selfAccepted||a.hot._selfInvalidated)){if(a.hot._selfDeclined)return{type:"self-declined",chain:d,moduleId:i};if(a.hot._main)return{type:"unaccepted",chain:d,moduleId:i};for(var u=0;u<a.parents.length;u++){var s=a.parents[u],f=l.c[s];if(f){if(f.hot._declinedDependencies[i])return{type:"declined",chain:d.concat([s]),moduleId:i,parentId:s};if(-1===r.indexOf(s)){if(f.hot._acceptedDependencies[i]){n[s]||(n[s]=[]),c(n[s],[i]);continue}delete n[s],r.push(s),t.push({chain:d.concat([s]),id:s})}}}}}return{type:"accepted",moduleId:e,outdatedModules:r,outdatedDependencies:n}}(p):{type:"disposed",moduleId:p};var m=!1,y=!1,g=!1,b="";switch(h.chain&&(b="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(m=Error("Aborted because of self decline: "+h.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(h),e.ignoreDeclined||(m=Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(h),e.ignoreUnaccepted||(m=Error("Aborted because "+p+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(h),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(h),g=!0;break;default:throw Error("Unexception type "+h.type)}if(m)return{error:m};if(y)for(p in s[p]=v,c(u,h.outdatedModules),h.outdatedDependencies)l.o(h.outdatedDependencies,p)&&(a[p]||(a[p]=[]),c(a[p],h.outdatedDependencies[p]));g&&(c(u,[h.moduleId]),s[p]=f)}n=void 0;for(var E=[],_=0;_<u.length;_++){var k=u[_],I=l.c[k];I&&(I.hot._selfAccepted||I.hot._main)&&s[k]!==f&&!I.hot._selfInvalidated&&E.push({module:k,require:I.hot._requireSelf,errorHandler:I.hot._selfAccepted})}return{dispose:function(){t.forEach(function(e){delete i[e]}),t=void 0;for(var e,r,n=u.slice();n.length>0;){var o=n.pop(),c=l.c[o];if(c){var s={},f=c.hot._disposeHandlers;for(_=0;_<f.length;_++)f[_].call(null,s);for(l.hmrD[o]=s,c.hot.active=!1,delete l.c[o],delete a[o],_=0;_<c.children.length;_++){var p=l.c[c.children[_]];p&&(e=p.parents.indexOf(o))>=0&&p.parents.splice(e,1)}}}for(var h in a)if(l.o(a,h)&&(c=l.c[h]))for(_=0,d=a[h];_<d.length;_++)r=d[_],(e=c.children.indexOf(r))>=0&&c.children.splice(e,1)},apply:function(r){for(var n in s)l.o(s,n)&&(l.m[n]=s[n]);for(var t=0;t<o.length;t++)o[t](l);for(var i in a)if(l.o(a,i)){var c=l.c[i];if(c){d=a[i];for(var f=[],p=[],h=[],v=0;v<d.length;v++){var m=d[v],y=c.hot._acceptedDependencies[m],g=c.hot._acceptedErrorHandlers[m];if(y){if(-1!==f.indexOf(y))continue;f.push(y),p.push(g),h.push(m)}}for(var b=0;b<f.length;b++)try{f[b].call(null,d)}catch(k){if("function"==typeof p[b])try{p[b](k,{moduleId:i,dependencyId:h[b]})}catch(_){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:i,dependencyId:h[b],error:_,originalError:k}),e.ignoreErrored||(r(_),r(k))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:i,dependencyId:h[b],error:k}),e.ignoreErrored||r(k)}}}for(var I=0;I<E.length;I++){var D=E[I],w=D.module;try{D.require(w)}catch(A){if("function"==typeof D.errorHandler)try{D.errorHandler(A,{moduleId:w,module:l.c[w]})}catch(x){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:w,error:x,originalError:A}),e.ignoreErrored||(r(x),r(A))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:w,error:A}),e.ignoreErrored||r(A)}}return u}}}self.hotUpdate=function(r,t,i){for(var d in t)l.o(t,d)&&(n[d]=t[d],e&&e.push(d));i&&o.push(i),c[r]&&(c[r](),c[r]=void 0)},l.hmrI.jsonp=function(e,r){n||(n={},o=[],t=[],r.push(a)),l.o(n,e)||(n[e]=l.m[e])},l.hmrC.jsonp=function(e,c,u,s,f,p){f.push(a),r={},t=c,n=u.reduce(function(e,r){return e[r]=!1,e},{}),o=[],e.forEach(function(e){l.o(i,e)&&void 0!==i[e]?(s.push(d(e,p)),r[e]=!0):r[e]=!1}),l.f&&(l.f.jsonpHmr=function(e,n){r&&l.o(r,e)&&!r[e]&&(n.push(d(e)),r[e]=!0)})},l.hmrM=function(){if("undefined"==typeof fetch)throw Error("No browser support: need fetch API");return fetch(l.p+l.hmrF()).then(function(e){if(404!==e.status){if(!e.ok)throw Error("Failed to fetch update manifest "+e.statusText);return e.json()}})}}(),l.hmrF=function(){return"main.hot-update.json"},l.hu=function(e){return""+e+".hot-update.js"},l.k=function(e){return({})[e]},d={},a="webpack:",l.l=function(e,r,n,t){if(void 0!==n)for(var o,i,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==a+n){o=s;break}}o||(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,o.setAttribute("data-webpack",a+n),o.src=e),d[e]=[r];var l=function(r,n){o.onerror=o.onload=null,clearTimeout(f);var t=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),t&&t.forEach(function(e){return e(n)}),r)return r(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l("./a.js")}(); | ||
!function(){var e,r,n,t,o,i,c,d,a,u={"./a.js":function(e,r,n){"use strict";e.exports=function(){return"This is a"}}},s={};function l(e){var r=s[e];if(void 0!==r)return r.exports;var n=s[e]={exports:{}},t={id:e,module:n,factory:u[e],require:l};return l.i.forEach(function(e){e(t)}),n=t.module,t.factory.call(n.exports,n,n.exports,t.require),n.exports}l.m=u,l.c=s,l.i=[],!function(){var e,r,n,t={},o=l.c,i=[],c=[],d="idle",a=0,u=[];l.hmrD=t,l.i.push(function(u){var v=u.module,m=function(r,n){var t=o[n];if(!t)return r;var c=function(c){if(t.hot.active){if(o[c]){var d=o[c].parents;-1===d.indexOf(n)&&d.push(n)}else i=[n],e=c;-1===t.children.indexOf(c)&&t.children.push(c)}else console.log("[HMR] unexpected require("+c+") from disposed module "+n),i=[];return r(c)},u=function(e){return{configurable:!0,enumerable:!0,get:function(){return r[e]},set:function(n){r[e]=n}}};for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&"e"!==l&&Object.defineProperty(c,l,u(l));return c.e=function(e){return function(e){switch(d){case"ready":s("prepare");case"prepare":return a++,e.then(f,f),e;default:return e}}(r.e(e))},c}(u.require,u.id);v.hot=function(o,a){var u=e!==o,f={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:u,_requireSelf:function(){i=a.parents.slice(),e=u?void 0:o,l(o)},active:!0,accept:function(e,r,n){if(void 0===e)f._selfAccepted=!0;else if("function"==typeof e)f._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)f._acceptedDependencies[e[t]]=r||function(){},f._acceptedErrorHandlers[e[t]]=n;else f._acceptedDependencies[e]=r||function(){},f._acceptedErrorHandlers[e]=n},decline:function(e){if(void 0===e)f._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var r=0;r<e.length;r++)f._declinedDependencies[e[r]]=!0;else f._declinedDependencies[e]=!0},dispose:function(e){f._disposeHandlers.push(e)},addDisposeHandler:function(e){f._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=f._disposeHandlers.indexOf(e);r>0&&f._disposeHandlers.splice(r,1)},invalidate:function(){switch(this._selfInvalidated=!0,d){case"idle":r=[],Object.keys(l.hmrI).forEach(function(e){l.hmrI[e](o,r)}),s("ready");break;case"ready":Object.keys(l.hmrI).forEach(function(e){l.hmrI[e](o,r)});break;case"prepare":case"check":case"dispose":case"apply":(n=n||[]).push(o)}},check:p,apply:h,status:function(e){if(!e)return d;c.push(e)},addStatusHandler:function(e){c.push(e)},removeStatusHandler:function(e){var r=c.indexOf(e);r>=0&&c.splice(r,1)},data:t[o]};return e=void 0,f}(u.id,v),v.parents=i,v.children=[],i=[],u.require=m}),l.hmrC={},l.hmrI={};function s(e){d=e;for(var r=[],n=0;n<c.length;n++)r[n]=c[n].call(null,e);return Promise.all(r)}function f(){0==--a&&s("ready").then(function(){if(0===a){var e=u;u=[];for(var r=0;r<e.length;r++)e[r]()}})}function p(e){if("idle"!==d)throw Error("check() is only allowed in idle status");return s("check").then(l.hmrM).then(function(n){return n?s("prepare").then(function(){var t=[];return r=[],Promise.all(Object.keys(l.hmrC).reduce(function(e,o){return l.hmrC[o](n.c,n.r,n.m,e,r,t),e},[])).then(function(){var r;return r=function(){return e?v(e):s("ready").then(function(){return t})},0===a?r():new Promise(function(e){u.push(function(){e(r())})})})}):s(m()?"ready":"idle").then(function(){return null})})}function h(e){return"ready"!==d?Promise.resolve().then(function(){throw Error("apply() is only allowed in ready status (state: "+d+")")}):v(e)}function v(e){e=e||{},m();var t,o=r.map(function(r){return r(e)});r=void 0;var i=o.map(function(e){return e.error}).filter(Boolean);if(i.length>0)return s("abort").then(function(){throw i[0]});var c=s("dispose");o.forEach(function(e){e.dispose&&e.dispose()});var d=s("apply"),a=function(e){!t&&(t=e)},u=[];return o.forEach(function(e){if(e.apply){var r=e.apply(a);if(r)for(var n=0;n<r.length;n++)u.push(r[n])}}),Promise.all([c,d]).then(function(){return t?s("fail").then(function(){throw t}):n?v(e).then(function(e){return u.forEach(function(r){0>e.indexOf(r)&&e.push(r)}),e}):s("idle").then(function(){return u})})}function m(){if(n)return!r&&(r=[]),Object.keys(l.hmrI).forEach(function(e){n.forEach(function(n){l.hmrI[e](n,r)})}),n=void 0,!0}}(),e="webpack",r="data-webpack-loading",n=(n,t,o,i)=>{var c,d,a="chunk-"+n;if(!i){for(var u=document.getElementsByTagName("link"),s=0;s<u.length;s++){var l=u[s];if("stylesheet"==l.rel&&(l.href.startsWith(t)||l.getAttribute("href").startsWith(t)||l.getAttribute("data-webpack")==e+":"+a)){c=l;break}}if(!o)return c}!c&&(d=!0,(c=document.createElement("link")).setAttribute("data-webpack",e+":"+a),c.setAttribute(r,1),c.rel="stylesheet",c.href=t);var f=(e,n)=>{if(c.onerror=c.onload=null,c.removeAttribute(r),clearTimeout(p),n&&"load"!=n.type&&c.parentNode.removeChild(c),o(n),e)return e(n)};if(c.getAttribute(r)){var p=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload)}else f(void 0,{type:"load",target:c});return i?document.head.insertBefore(c,i):d&&document.head.appendChild(c),c},t=[],o=[],i=function(e){return{dispose:function(){},apply:function(){for(o.forEach(function(e){e[1].sheet.disabled=!1});t.length;){var e=t.pop();e.parentNode&&e.parentNode.removeChild(e)}for(;o.length;)o.pop();return[]}}},c=function(e){return Array.from(e.sheet.cssRules,function(e){return e.cssText.join()})},l.hmrC.css=function(e,r,d,a,u,s){u.push(i),e.forEach(function(e){var r=l.k(e),i=l.p+r,d=n(e,i);d&&a.push(new Promise(function(r,a){var u=n(e,i+(0>i.indexOf("?")?"?":"&")+"hmr="+Date.now(),function(n){if("load"!==n.type){var l=n&&n.type,f=n&&n.target&&n.target.src;error.message="Loading css hot update chunk "+e+" failed.\n("+l+": "+f+")",error.name="ChunkLoadError",error.type=l,error.request=f,a(error)}else{try{if(c(d)==c(u))return u.parentNode&&u.parentNode.removeChild(u),r()}catch(p){}s.push(i),u.sheet.disabled=!0,t.push(d),o.push([e,u]),r()}},d)}))})},!function(){var e,r,n,t,o,i={main:0},c={};function d(r,n){return e=n,new Promise(function(e,n){var t=l.p+l.hu(r);c[r]=e;var o=Error();l.l(t,function(e){if(c[r]){c[r]=void 0;var t=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;o.message="Loading hot update chunk "+r+" failed.\n("+t+": "+i+")",o.name="ChunkLoadError",o.type=t,o.request=i,n(o)}})})}function a(e){l.f&&delete l.f.jsonpHmr,r=void 0;function c(e,r){for(var n=0;n<r.length;n++){var t=r[n];-1===e.indexOf(t)&&e.push(t)}}var d,a={},u=[],s={},f=function(e){console.warn("[HMR] unexpected require("+e.id+") to disposed module")};for(var p in n)if(l.o(n,p)){var h,v=n[p];h=v?function(e){for(var r=[e],n={},t=r.map(function(e){return{chain:[e],id:e}});t.length>0;){var o=t.pop(),i=o.id,d=o.chain,a=l.c[i];if(!!a&&(!a.hot._selfAccepted||!!a.hot._selfInvalidated)){if(a.hot._selfDeclined)return{type:"self-declined",chain:d,moduleId:i};if(a.hot._main)return{type:"unaccepted",chain:d,moduleId:i};for(var u=0;u<a.parents.length;u++){var s=a.parents[u],f=l.c[s];if(!f)continue;if(f.hot._declinedDependencies[i])return{type:"declined",chain:d.concat([s]),moduleId:i,parentId:s};if(-1===r.indexOf(s)){if(f.hot._acceptedDependencies[i]){!n[s]&&(n[s]=[]),c(n[s],[i]);continue}delete n[s],r.push(s),t.push({chain:d.concat([s]),id:s})}}}}return{type:"accepted",moduleId:e,outdatedModules:r,outdatedDependencies:n}}(p):{type:"disposed",moduleId:p};var m=!1,y=!1,g=!1,b="";switch(h.chain&&(b="\nUpdate propagation: "+h.chain.join(" -> ")),h.type){case"self-declined":e.onDeclined&&e.onDeclined(h),!e.ignoreDeclined&&(m=Error("Aborted because of self decline: "+h.moduleId+b));break;case"declined":e.onDeclined&&e.onDeclined(h),!e.ignoreDeclined&&(m=Error("Aborted because of declined dependency: "+h.moduleId+" in "+h.parentId+b));break;case"unaccepted":e.onUnaccepted&&e.onUnaccepted(h),!e.ignoreUnaccepted&&(m=Error("Aborted because "+p+" is not accepted"+b));break;case"accepted":e.onAccepted&&e.onAccepted(h),y=!0;break;case"disposed":e.onDisposed&&e.onDisposed(h),g=!0;break;default:throw Error("Unexception type "+h.type)}if(m)return{error:m};if(y)for(p in s[p]=v,c(u,h.outdatedModules),h.outdatedDependencies)l.o(h.outdatedDependencies,p)&&(!a[p]&&(a[p]=[]),c(a[p],h.outdatedDependencies[p]));g&&(c(u,[h.moduleId]),s[p]=f)}n=void 0;for(var E=[],_=0;_<u.length;_++){var k=u[_],I=l.c[k];I&&(I.hot._selfAccepted||I.hot._main)&&s[k]!==f&&!I.hot._selfInvalidated&&E.push({module:k,require:I.hot._requireSelf,errorHandler:I.hot._selfAccepted})}return{dispose:function(){t.forEach(function(e){delete i[e]}),t=void 0;for(var e,r,n=u.slice();n.length>0;){var o=n.pop(),c=l.c[o];if(!!c){var s={},f=c.hot._disposeHandlers;for(_=0;_<f.length;_++)f[_].call(null,s);for(l.hmrD[o]=s,c.hot.active=!1,delete l.c[o],delete a[o],_=0;_<c.children.length;_++){var p=l.c[c.children[_]];p&&(e=p.parents.indexOf(o))>=0&&p.parents.splice(e,1)}}}for(var h in a)if(l.o(a,h)&&(c=l.c[h]))for(_=0,d=a[h];_<d.length;_++)r=d[_],(e=c.children.indexOf(r))>=0&&c.children.splice(e,1)},apply:function(r){for(var n in s)l.o(s,n)&&(l.m[n]=s[n]);for(var t=0;t<o.length;t++)o[t](l);for(var i in a)if(l.o(a,i)){var c=l.c[i];if(c){d=a[i];for(var f=[],p=[],h=[],v=0;v<d.length;v++){var m=d[v],y=c.hot._acceptedDependencies[m],g=c.hot._acceptedErrorHandlers[m];if(y){if(-1!==f.indexOf(y))continue;f.push(y),p.push(g),h.push(m)}}for(var b=0;b<f.length;b++)try{f[b].call(null,d)}catch(k){if("function"==typeof p[b])try{p[b](k,{moduleId:i,dependencyId:h[b]})}catch(_){e.onErrored&&e.onErrored({type:"accept-error-handler-errored",moduleId:i,dependencyId:h[b],error:_,originalError:k}),!e.ignoreErrored&&(r(_),r(k))}else e.onErrored&&e.onErrored({type:"accept-errored",moduleId:i,dependencyId:h[b],error:k}),!e.ignoreErrored&&r(k)}}}for(var I=0;I<E.length;I++){var D=E[I],w=D.module;try{D.require(w)}catch(A){if("function"==typeof D.errorHandler)try{D.errorHandler(A,{moduleId:w,module:l.c[w]})}catch(x){e.onErrored&&e.onErrored({type:"self-accept-error-handler-errored",moduleId:w,error:x,originalError:A}),!e.ignoreErrored&&(r(x),r(A))}else e.onErrored&&e.onErrored({type:"self-accept-errored",moduleId:w,error:A}),!e.ignoreErrored&&r(A)}}return u}}}self.hotUpdate=function(r,t,i){for(var d in t)l.o(t,d)&&(n[d]=t[d],e&&e.push(d));i&&o.push(i),c[r]&&(c[r](),c[r]=void 0)},l.hmrI.jsonp=function(e,r){!n&&(n={},o=[],t=[],r.push(a)),!l.o(n,e)&&(n[e]=l.m[e])},l.hmrC.jsonp=function(e,c,u,s,f,p){f.push(a),r={},t=c,n=u.reduce(function(e,r){return e[r]=!1,e},{}),o=[],e.forEach(function(e){l.o(i,e)&&void 0!==i[e]?(s.push(d(e,p)),r[e]=!0):r[e]=!1}),l.f&&(l.f.jsonpHmr=function(e,n){r&&l.o(r,e)&&!r[e]&&(n.push(d(e)),r[e]=!0)})},l.hmrM=function(){if("undefined"==typeof fetch)throw Error("No browser support: need fetch API");return fetch(l.p+l.hmrF()).then(function(e){if(404!==e.status){if(!e.ok)throw Error("Failed to fetch update manifest "+e.statusText);return e.json()}})}}(),l.hmrF=function(){return"main.hot-update.json"},l.hu=function(e){return""+e+".hot-update.js"},l.k=function(e){return({})[e]},d={},a="webpack:",l.l=function(e,r,n,t){if(void 0!==n){for(var o,i,c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var s=c[u];if(s.getAttribute("src")==e||s.getAttribute("data-webpack")==a+n){o=s;break}}}!o&&(i=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,o.setAttribute("data-webpack",a+n),o.src=e),d[e]=[r];var l=function(r,n){o.onerror=o.onload=null,clearTimeout(f);var t=d[e];if(delete d[e],o.parentNode&&o.parentNode.removeChild(o),t&&t.forEach(function(e){return e(n)}),r)return r(n)},f=setTimeout(l.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=l.bind(null,o.onerror),o.onload=l.bind(null,o.onload),i&&document.head.appendChild(o)},l.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},l("./a.js")}(); |
@@ -217,2 +217,7 @@ "use strict"; | ||
else { | ||
this.hooks.done.callAsync(new stats_1.Stats(stats, this.compilation), err => { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
cb(null, stats); | ||
@@ -255,3 +260,2 @@ } | ||
this.rebuild(changedFilepath, (error, rawStats) => { | ||
let stats = new stats_1.Stats(rawStats, this.compilation); | ||
isBuildFinished = true; | ||
@@ -268,7 +272,2 @@ const hasPending = Boolean(pendingChangedFilepaths.size); | ||
} | ||
this.hooks.done.callAsync(stats, err => { | ||
if (err) { | ||
throw err; | ||
} | ||
}); | ||
console.log("rebuild success, time cost", Date.now() - begin, "ms"); | ||
@@ -275,0 +274,0 @@ }); |
@@ -1,6 +0,6 @@ | ||
import type { RawBuiltins, RawHtmlPluginConfig, RawDecoratorOptions } from "@rspack/binding"; | ||
import type { RawBuiltins, RawHtmlPluginConfig, RawDecoratorOptions, Minification } from "@rspack/binding"; | ||
export declare type BuiltinsHtmlPluginConfig = Omit<RawHtmlPluginConfig, "meta"> & { | ||
meta?: Record<string, string | Record<string, string>>; | ||
}; | ||
export declare type Builtins = Omit<RawBuiltins, "define" | "browserslist" | "html" | "decorator"> & { | ||
export declare type Builtins = Omit<RawBuiltins, "define" | "browserslist" | "html" | "decorator" | "minify"> & { | ||
define?: Record<string, string | undefined>; | ||
@@ -10,2 +10,3 @@ polyfillBuiltins?: boolean; | ||
decorator?: boolean | Partial<RawDecoratorOptions>; | ||
minify?: boolean | Partial<Minification>; | ||
}; | ||
@@ -16,3 +17,7 @@ export declare type ResolvedBuiltins = Omit<RawBuiltins, "html"> & { | ||
}; | ||
export declare function resolveBuiltinsOptions(builtins: Builtins, contextPath: string): ResolvedBuiltins; | ||
export declare function resolveBuiltinsOptions(builtins: Builtins, { contextPath, isProduction }: { | ||
contextPath: string; | ||
isProduction: boolean; | ||
}): ResolvedBuiltins; | ||
export declare function resolveMinify(builtins: Builtins, isProduction: boolean): Minification; | ||
//# sourceMappingURL=builtins.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.resolveBuiltinsOptions = void 0; | ||
exports.resolveMinify = exports.resolveBuiltinsOptions = void 0; | ||
const browserslist_1 = require("browserslist"); | ||
@@ -39,3 +39,3 @@ function resolveDefine(define) { | ||
} | ||
function resolveBuiltinsOptions(builtins, contextPath) { | ||
function resolveBuiltinsOptions(builtins, { contextPath, isProduction }) { | ||
const browserslist = (0, browserslist_1.loadConfig)({ path: contextPath }) || []; | ||
@@ -47,6 +47,30 @@ return { | ||
browserslist, | ||
decorator: resolveDecorator(builtins.decorator) | ||
decorator: resolveDecorator(builtins.decorator), | ||
minify: resolveMinify(builtins, isProduction) | ||
}; | ||
} | ||
exports.resolveBuiltinsOptions = resolveBuiltinsOptions; | ||
function resolveMinify(builtins, isProduction) { | ||
if (builtins.minify) { | ||
if (typeof builtins.minify === "boolean") { | ||
return { | ||
enable: builtins.minify, | ||
passes: 1 | ||
}; | ||
} | ||
else { | ||
return { | ||
...builtins.minify, | ||
enable: true | ||
}; | ||
} | ||
} | ||
else { | ||
return { | ||
enable: isProduction, | ||
passes: 1 | ||
}; | ||
} | ||
} | ||
exports.resolveMinify = resolveMinify; | ||
//# sourceMappingURL=builtins.js.map |
@@ -55,8 +55,4 @@ "use strict"; | ||
applyOutputDefaults(options.output); | ||
D(options.builtins, "minify", { | ||
enable: production, | ||
passes: 1 | ||
}); | ||
} | ||
exports.applyRspackOptionsDefaults = applyRspackOptionsDefaults; | ||
//# sourceMappingURL=defaults.js.map |
@@ -17,2 +17,4 @@ import type { Context, ResolvedContext } from "./context"; | ||
import { ResolvedStatsOptions, StatsOptions } from "./stats"; | ||
import { Optimization, ResolvedOptimization } from "./optimization"; | ||
import { RawExperiments } from "@rspack/binding"; | ||
export declare type Configuration = RspackOptions; | ||
@@ -38,2 +40,4 @@ export interface RspackOptions { | ||
cache?: Cache; | ||
optimization?: Optimization; | ||
experiments?: RawExperiments; | ||
} | ||
@@ -59,2 +63,4 @@ export interface RspackOptionsNormalized { | ||
cache: ResolvedCache; | ||
optimization?: ResolvedOptimization; | ||
experiments: RawExperiments; | ||
} | ||
@@ -61,0 +67,0 @@ export declare function getNormalizedRspackOptions(config: RspackOptions): RspackOptionsNormalized; |
@@ -14,4 +14,6 @@ "use strict"; | ||
const stats_1 = require("./stats"); | ||
const optimization_1 = require("./optimization"); | ||
const experiments_1 = require("./experiments"); | ||
function getNormalizedRspackOptions(config) { | ||
var _a, _b, _c, _d, _e, _f; | ||
var _a, _b, _c, _d, _e, _f, _g; | ||
const context = (_a = config.context) !== null && _a !== void 0 ? _a : process.cwd(); | ||
@@ -27,3 +29,6 @@ const mode = (_b = config.mode) !== null && _b !== void 0 ? _b : "production"; | ||
const plugins = (_e = config.plugins) !== null && _e !== void 0 ? _e : []; | ||
const builtins = (0, builtins_1.resolveBuiltinsOptions)(config.builtins || {}, context); | ||
const builtins = (0, builtins_1.resolveBuiltinsOptions)(config.builtins || {}, { | ||
contextPath: context, | ||
isProduction: mode === "production" | ||
}); | ||
const resolve = (0, resolve_1.resolveResolveOptions)(config.resolve, { target }); | ||
@@ -36,2 +41,4 @@ const devtool = (0, devtool_1.resolveDevtoolOptions)(config.devtool); | ||
const cache = (0, cache_1.resolveCacheOptions)((_f = config.cache) !== null && _f !== void 0 ? _f : (mode === "production" ? false : true)); | ||
const optimization = (0, optimization_1.resolveOptimizationOptions)((_g = config.optimization) !== null && _g !== void 0 ? _g : {}, mode); | ||
const experiments = (0, experiments_1.resolveExperiments)(config.experiments); | ||
return { | ||
@@ -55,3 +62,5 @@ ...config, | ||
snapshot, | ||
cache | ||
cache, | ||
optimization, | ||
experiments | ||
}; | ||
@@ -58,0 +67,0 @@ } |
@@ -11,2 +11,3 @@ export interface Output { | ||
cssChunkFilename?: string; | ||
library?: string; | ||
} | ||
@@ -26,4 +27,5 @@ export interface ResolvedOutput { | ||
cssChunkFilename?: string; | ||
library?: string; | ||
} | ||
export declare function resolveOutputOptions(output?: Output): ResolvedOutput; | ||
//# sourceMappingURL=output.d.ts.map |
@@ -1,1 +0,1 @@ | ||
!function(){var e={"./index.js":function(e,n,r){"use strict";r.e(["dynamic_js"]).then(r.bind(r,"./dynamic.js")).then(console.log)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var c=n[t]={exports:{}},o={id:t,module:c,factory:e[t],require:r};return r.i.forEach(function(e){e(o)}),c=o.module,o.factory.call(c.exports,c,c.exports,o.require),c.exports}r.m=e,r.c=n,r.i=[],r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce(function(n,t){return r.f[t](e,n),n},[]))},function(){var e,n,t,i={},c=r.c,o=[],u=[],a="idle",s=0,f=[];function d(e){a=e;for(var n=[],r=0;r<u.length;r++)n[r]=u[r].call(null,e);return Promise.all(n)}function l(){0==--s&&d("ready").then(function(){if(0===s){var e=f;f=[];for(var n=0;n<e.length;n++)e[n]()}})}function p(e){if("idle"!==a)throw Error("check() is only allowed in idle status");return d("check").then(r.hmrM).then(function(t){return t?d("prepare").then(function(){var i=[];return n=[],Promise.all(Object.keys(r.hmrC).reduce(function(e,c){return r.hmrC[c](t.c,t.r,t.m,e,n,i),e},[])).then(function(){var n;return n=function(){return e?v(e):d("ready").then(function(){return i})},0===s?n():new Promise(function(e){f.push(function(){e(n())})})})}):d(m()?"ready":"idle").then(function(){return null})})}function h(e){return"ready"!==a?Promise.resolve().then(function(){throw Error("apply() is only allowed in ready status (state: "+a+")")}):v(e)}function v(e){e=e||{},m();var r,i=n.map(function(n){return n(e)});n=void 0;var c=i.map(function(e){return e.error}).filter(Boolean);if(c.length>0)return d("abort").then(function(){throw c[0]});var o=d("dispose");i.forEach(function(e){e.dispose&&e.dispose()});var u=d("apply"),a=function(e){r||(r=e)},s=[];return i.forEach(function(e){if(e.apply){var n=e.apply(a);if(n)for(var r=0;r<n.length;r++)s.push(n[r])}}),Promise.all([o,u]).then(function(){return r?d("fail").then(function(){throw r}):t?v(e).then(function(e){return s.forEach(function(n){0>e.indexOf(n)&&e.push(n)}),e}):d("idle").then(function(){return s})})}function m(){if(t)return n||(n=[]),Object.keys(r.hmrI).forEach(function(e){t.forEach(function(t){r.hmrI[e](t,n)})}),t=void 0,!0}r.hmrD=i,r.i.push(function(f){var v,m,y,_=f.module,b=function(n,r){var t=c[r];if(!t)return n;var i=function(i){if(t.hot.active){if(c[i]){var u=c[i].parents;-1===u.indexOf(r)&&u.push(r)}else o=[r],e=i;-1===t.children.indexOf(i)&&t.children.push(i)}else console.log("[HMR] unexpected require("+i+") from disposed module "+r),o=[];return n(i)},u=function(e){return{configurable:!0,enumerable:!0,get:function(){return n[e]},set:function(r){n[e]=r}}};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&"e"!==f&&Object.defineProperty(i,f,u(f));return i.e=function(e){return function(e){switch(a){case"ready":d("prepare");case"prepare":return s++,e.then(l,l),e;default:return e}}(n.e(e))},i}(f.require,f.id);_.hot=(y={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:m=e!==(v=f.id),_requireSelf:function(){o=_.parents.slice(),e=m?void 0:v,r(v)},active:!0,accept:function(e,n,r){if(void 0===e)y._selfAccepted=!0;else if("function"==typeof e)y._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)y._acceptedDependencies[e[t]]=n||function(){},y._acceptedErrorHandlers[e[t]]=r;else y._acceptedDependencies[e]=n||function(){},y._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)y._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)y._declinedDependencies[e[n]]=!0;else y._declinedDependencies[e]=!0},dispose:function(e){y._disposeHandlers.push(e)},addDisposeHandler:function(e){y._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=y._disposeHandlers.indexOf(e);n>0&&y._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,a){case"idle":n=[],Object.keys(r.hmrI).forEach(function(e){r.hmrI[e](v,n)}),d("ready");break;case"ready":Object.keys(r.hmrI).forEach(function(e){r.hmrI[e](v,n)});break;case"prepare":case"check":case"dispose":case"apply":(t=t||[]).push(v)}},check:p,apply:h,status:function(e){if(!e)return a;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:i[v]},e=void 0,y),_.parents=o,_.children=[],o=[],f.require=b}),r.hmrC={},r.hmrI={}}(),r("./index.js")}(); | ||
!function(){var e={"./index.js":function(e,n,r){"use strict";r.e(["dynamic_js"]).then(r.bind(r,"./dynamic.js")).then(console.log)}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var c=n[t]={exports:{}},o={id:t,module:c,factory:e[t],require:r};return r.i.forEach(function(e){e(o)}),c=o.module,o.factory.call(c.exports,c,c.exports,o.require),c.exports}r.m=e,r.c=n,r.i=[],r.f={},r.e=function(e){return Promise.all(Object.keys(r.f).reduce(function(n,t){return r.f[t](e,n),n},[]))},!function(){var e,n,t,i={},c=r.c,o=[],u=[],a="idle",s=0,f=[];r.hmrD=i,r.i.push(function(f){var v=f.module,m=function(n,r){var t=c[r];if(!t)return n;var i=function(i){if(t.hot.active){if(c[i]){var u=c[i].parents;-1===u.indexOf(r)&&u.push(r)}else o=[r],e=i;-1===t.children.indexOf(i)&&t.children.push(i)}else console.log("[HMR] unexpected require("+i+") from disposed module "+r),o=[];return n(i)},u=function(e){return{configurable:!0,enumerable:!0,get:function(){return n[e]},set:function(r){n[e]=r}}};for(var f in n)Object.prototype.hasOwnProperty.call(n,f)&&"e"!==f&&Object.defineProperty(i,f,u(f));return i.e=function(e){return function(e){switch(a){case"ready":d("prepare");case"prepare":return s++,e.then(l,l),e;default:return e}}(n.e(e))},i}(f.require,f.id);v.hot=function(c,s){var f=e!==c,l={_acceptedDependencies:{},_acceptedErrorHandlers:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:f,_requireSelf:function(){o=s.parents.slice(),e=f?void 0:c,r(c)},active:!0,accept:function(e,n,r){if(void 0===e)l._selfAccepted=!0;else if("function"==typeof e)l._selfAccepted=e;else if("object"==typeof e&&null!==e)for(var t=0;t<e.length;t++)l._acceptedDependencies[e[t]]=n||function(){},l._acceptedErrorHandlers[e[t]]=r;else l._acceptedDependencies[e]=n||function(){},l._acceptedErrorHandlers[e]=r},decline:function(e){if(void 0===e)l._selfDeclined=!0;else if("object"==typeof e&&null!==e)for(var n=0;n<e.length;n++)l._declinedDependencies[e[n]]=!0;else l._declinedDependencies[e]=!0},dispose:function(e){l._disposeHandlers.push(e)},addDisposeHandler:function(e){l._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=l._disposeHandlers.indexOf(e);n>0&&l._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,a){case"idle":n=[],Object.keys(r.hmrI).forEach(function(e){r.hmrI[e](c,n)}),d("ready");break;case"ready":Object.keys(r.hmrI).forEach(function(e){r.hmrI[e](c,n)});break;case"prepare":case"check":case"dispose":case"apply":(t=t||[]).push(c)}},check:p,apply:h,status:function(e){if(!e)return a;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:i[c]};return e=void 0,l}(f.id,v),v.parents=o,v.children=[],o=[],f.require=m}),r.hmrC={},r.hmrI={};function d(e){a=e;for(var n=[],r=0;r<u.length;r++)n[r]=u[r].call(null,e);return Promise.all(n)}function l(){0==--s&&d("ready").then(function(){if(0===s){var e=f;f=[];for(var n=0;n<e.length;n++)e[n]()}})}function p(e){if("idle"!==a)throw Error("check() is only allowed in idle status");return d("check").then(r.hmrM).then(function(t){return t?d("prepare").then(function(){var i=[];return n=[],Promise.all(Object.keys(r.hmrC).reduce(function(e,c){return r.hmrC[c](t.c,t.r,t.m,e,n,i),e},[])).then(function(){var n;return n=function(){return e?v(e):d("ready").then(function(){return i})},0===s?n():new Promise(function(e){f.push(function(){e(n())})})})}):d(m()?"ready":"idle").then(function(){return null})})}function h(e){return"ready"!==a?Promise.resolve().then(function(){throw Error("apply() is only allowed in ready status (state: "+a+")")}):v(e)}function v(e){e=e||{},m();var r,i=n.map(function(n){return n(e)});n=void 0;var c=i.map(function(e){return e.error}).filter(Boolean);if(c.length>0)return d("abort").then(function(){throw c[0]});var o=d("dispose");i.forEach(function(e){e.dispose&&e.dispose()});var u=d("apply"),a=function(e){!r&&(r=e)},s=[];return i.forEach(function(e){if(e.apply){var n=e.apply(a);if(n)for(var r=0;r<n.length;r++)s.push(n[r])}}),Promise.all([o,u]).then(function(){return r?d("fail").then(function(){throw r}):t?v(e).then(function(e){return s.forEach(function(n){0>e.indexOf(n)&&e.push(n)}),e}):d("idle").then(function(){return s})})}function m(){if(t)return!n&&(n=[]),Object.keys(r.hmrI).forEach(function(e){t.forEach(function(t){r.hmrI[e](t,n)})}),t=void 0,!0}}(),r("./index.js")}(); |
{ | ||
"name": "@rspack/core", | ||
"version": "0.0.0-20221208023045", | ||
"version": "0.0.0-20221209084707", | ||
"main": "./dist/index.js", | ||
@@ -26,6 +26,6 @@ "types": "./dist/index.d.ts", | ||
"@types/rimraf": "3.0.2", | ||
"@rspack/core": "0.0.0-20221208023045", | ||
"@rspack/less-loader": "^0.0.0-20221208023045", | ||
"@rspack/postcss-loader": "^0.0.0-20221208023045", | ||
"@rspack/plugin-node-polyfill": "^0.0.0-20221208023045" | ||
"@rspack/core": "0.0.0-20221209084707", | ||
"@rspack/less-loader": "^0.0.0-20221209084707", | ||
"@rspack/postcss-loader": "^0.0.0-20221209084707", | ||
"@rspack/plugin-node-polyfill": "^0.0.0-20221209084707" | ||
}, | ||
@@ -41,4 +41,4 @@ "dependencies": { | ||
"@swc/helpers": "0.4.13", | ||
"@rspack/dev-client": "0.0.0-20221208023045", | ||
"@rspack/binding": "0.0.0-20221208023045" | ||
"@rspack/binding": "0.0.0-20221209084707", | ||
"@rspack/dev-client": "0.0.0-20221209084707" | ||
}, | ||
@@ -45,0 +45,0 @@ "optionalDependencies": { |
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
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
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
Sorry, the diff of this file is not supported yet
332560
187
4576
+ Added@rspack/binding@0.0.0-20221209084707(transitive)
+ Added@rspack/dev-client@0.0.0-20221209084707(transitive)
- Removed@rspack/binding@0.0.0-20221208023045(transitive)
- Removed@rspack/dev-client@0.0.0-20221208023045(transitive)