swc/crates/swc_webpack_ast/tests/fixture/libs/1/input.js
Donny/강동윤 667dd1e95e
fix(webpack/ast): Fix ast reducer (#2936)
swc_webpack_ast:
 - Preserve string literals in `require`
2021-12-01 21:54:55 +09:00

10 lines
226 B
JavaScript

"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Array.prototype, "map", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}