swc/ecmascript/minifier/tests/mangle/1/output.js
Donny/강동윤 98cc79a2be
fix(es/minifer): Fix bugs (#2397)
swc_ecma_codegen:
 - Fix sourcemap of `export` tokens.
 - Fix codegen of numeric operands in left of a binary expression.
 - Fix codegen of unary operations.

swc_ecma_minifier:
 - Visit `AssignPatProp.valie`.
 - Move `inline_prevented` to analyzer.
 - Add `Ctx.dont_invoke_iife`.
 - `iife`: Check for `arugments`

swc:
 - `inline_sources_content`: true by default for `minify()`.
2021-10-11 07:44:42 +00:00

35 lines
729 B
JavaScript

"use strict";
var a = (this && this.__importDefault) || function(b) {
return (b && b.a) ? b : {
"default": b
};
};
Object.defineProperty(exports, "a", {
value: true
});
const c = a(require("./config.json"));
function d({ config =c.default } = {
}) {
function e(f) {
const g = config[f] || null;
if (!g) {
return false;
}
const { available , availableBy } = g;
if (!availableBy) {
return available;
}
return Date.now() >= availableBy && available;
}
function h(i) {
const j = config[i] || null;
return j;
}
return {
b: h,
c: e,
d: config
};
}
exports.default = d;