Skip to content

Commit

Permalink
Update test refs
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jan 3, 2023
1 parent f0c04df commit 1ce8ab7
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
13 changes: 13 additions & 0 deletions crates/swc/tests/fixture/issues-6xxx/6730/output/index.ts
@@ -0,0 +1,13 @@
import r from "@swc/helpers/src/_async_to_generator.mjs";
export const styleLoader = ()=>{
return {
setup (t) {
t.onLoad(function() {
var t = r(function*(r) {});
return function(r) {
return t.apply(this, arguments);
};
}());
}
};
};
42 changes: 42 additions & 0 deletions crates/swc_ecma_minifier/tests/fixture/issues/6730/output.js
@@ -0,0 +1,42 @@
function n(n, e, t, r, o, u, i) {
try {
var a = n[u](i);
var c = a.value;
} catch (s) {
t(s);
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);
};
}());
}
};
};

0 comments on commit 1ce8ab7

Please sign in to comment.