mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
a1ccc8afdf
**Related issue:** - Closes https://github.com/swc-project/swc/issues/5090. - Closes https://github.com/swc-project/swc/issues/5766.
43 lines
989 B
JavaScript
43 lines
989 B
JavaScript
function n(n, e, t, r, o, u, i) {
|
|
try {
|
|
var a = n[u](i);
|
|
var c = a.value;
|
|
} catch (n) {
|
|
t(n);
|
|
return;
|
|
}
|
|
if (a.done) e(c);
|
|
else Promise.resolve(c).then(r, o);
|
|
}
|
|
function e(e) {
|
|
return function() {
|
|
var t = this, r = arguments;
|
|
return new Promise(function(o, u) {
|
|
var i = e.apply(t, r);
|
|
function a(e) {
|
|
n(i, o, u, a, c, "next", e);
|
|
}
|
|
function c(e) {
|
|
n(i, o, u, a, c, "throw", e);
|
|
}
|
|
a(void 0);
|
|
});
|
|
};
|
|
}
|
|
export const styleLoader = ()=>{
|
|
return {
|
|
name: 'style-loader',
|
|
setup (n) {
|
|
n.onLoad({
|
|
filter: /.*/,
|
|
namespace: 'less'
|
|
}, function() {
|
|
var n = e(function*(n) {});
|
|
return function(e) {
|
|
return n.apply(this, arguments);
|
|
};
|
|
}());
|
|
}
|
|
};
|
|
};
|