mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
98cc79a2be
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()`.
35 lines
729 B
JavaScript
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;
|