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 { Devs } from "@utils/constants";
|
||||||
import { Logger } from "@utils/Logger";
|
import { Logger } from "@utils/Logger";
|
||||||
import definePlugin, { OptionType, StartAt } from "@utils/types";
|
import definePlugin, { OptionType, StartAt } from "@utils/types";
|
||||||
|
import { WebpackRequire } from "webpack";
|
||||||
|
|
||||||
const settings = definePluginSettings({
|
const settings = definePluginSettings({
|
||||||
disableAnalytics: {
|
disableAnalytics: {
|
||||||
|
@ -82,9 +83,9 @@ export default definePlugin({
|
||||||
Object.defineProperty(Function.prototype, "g", {
|
Object.defineProperty(Function.prototype, "g", {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
|
||||||
set(v: any) {
|
set(this: WebpackRequire, globalObj: WebpackRequire["g"]) {
|
||||||
Object.defineProperty(this, "g", {
|
Object.defineProperty(this, "g", {
|
||||||
value: v,
|
value: globalObj,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
enumerable: true,
|
enumerable: true,
|
||||||
writable: true
|
writable: true
|
||||||
|
@ -101,7 +102,7 @@ export default definePlugin({
|
||||||
Object.defineProperty(Object.prototype, cacheExtractSym, {
|
Object.defineProperty(Object.prototype, cacheExtractSym, {
|
||||||
configurable: true,
|
configurable: true,
|
||||||
|
|
||||||
get() {
|
get(this: WebpackRequire["c"]) {
|
||||||
// One more condition to check if this is the Sentry WebpackInstance
|
// One more condition to check if this is the Sentry WebpackInstance
|
||||||
if (Array.isArray(this)) {
|
if (Array.isArray(this)) {
|
||||||
return { exports: {} };
|
return { exports: {} };
|
||||||
|
|
Loading…
Reference in a new issue