mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
667dd1e95e
swc_webpack_ast: - Preserve string literals in `require`
10 lines
226 B
JavaScript
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
|
|
});
|
|
} |