mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +03:00
d1687d8e01
**Related issue:** - Closes https://github.com/swc-project/swc/issues/6123.
41 lines
975 B
JavaScript
41 lines
975 B
JavaScript
function n(n, e, t, r, o, i, u) {
|
|
try {
|
|
var a = n[i](u);
|
|
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, i) {
|
|
var u = e.apply(t, r);
|
|
function a(e) {
|
|
n(u, o, i, a, c, "next", e);
|
|
}
|
|
function c(e) {
|
|
n(u, o, i, a, c, "throw", e);
|
|
}
|
|
a(void 0);
|
|
});
|
|
};
|
|
}
|
|
export const styleLoader = ()=>({
|
|
name: 'style-loader',
|
|
setup (n) {
|
|
n.onLoad({
|
|
filter: /.*/,
|
|
namespace: 'less'
|
|
}, function() {
|
|
var n = e(function*(n) {});
|
|
return function(e) {
|
|
return n.apply(this, arguments);
|
|
};
|
|
}());
|
|
}
|
|
});
|