Merge branch 'modules-proxy-patches' into immediate-finds-modules-proxy
This commit is contained in:
commit
20cfa932a4
|
@ -20,6 +20,7 @@ import { definePluginSettings } from "@api/Settings";
|
|||
import { Devs } from "@utils/constants";
|
||||
import { Logger } from "@utils/Logger";
|
||||
import definePlugin, { OptionType, StartAt } from "@utils/types";
|
||||
import { WebpackRequire } from "webpack";
|
||||
|
||||
const settings = definePluginSettings({
|
||||
disableAnalytics: {
|
||||
|
@ -82,9 +83,9 @@ export default definePlugin({
|
|||
Object.defineProperty(Function.prototype, "g", {
|
||||
configurable: true,
|
||||
|
||||
set(v: any) {
|
||||
set(this: WebpackRequire, globalObj: WebpackRequire["g"]) {
|
||||
Object.defineProperty(this, "g", {
|
||||
value: v,
|
||||
value: globalObj,
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
writable: true
|
||||
|
@ -101,7 +102,7 @@ export default definePlugin({
|
|||
Object.defineProperty(Object.prototype, cacheExtractSym, {
|
||||
configurable: true,
|
||||
|
||||
get() {
|
||||
get(this: WebpackRequire["c"]) {
|
||||
// One more condition to check if this is the Sentry WebpackInstance
|
||||
if (Array.isArray(this)) {
|
||||
return { exports: {} };
|
||||
|
|
Loading…
Reference in a new issue