From 507abf79ba839499c0df37a260e7cf02a3edc302 Mon Sep 17 00:00:00 2001 From: PalmDevs Date: Fri, 11 Oct 2024 17:54:48 +0700 Subject: [PATCH] fix: revert to RTDC 5.3.1 --- build.ts | 13 ------------- bun.lockb | Bin 11521 -> 28692 bytes index.js | 14 +++++++++++--- package.json | 9 ++++++--- rollup.config.mjs | 25 +++++++++++++++++++++++++ 5 files changed, 42 insertions(+), 19 deletions(-) delete mode 100644 build.ts create mode 100644 rollup.config.mjs diff --git a/build.ts b/build.ts deleted file mode 100644 index 7767492..0000000 --- a/build.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { buildSync } from 'esbuild' -import { version } from './node_modules/react-devtools-core/package.json' with { type: 'json' } - -buildSync({ - entryPoints: ['index.js'], - outfile: 'dist/index.js', - bundle: true, - format: 'iife', - minify: true, - define: { - __RDTC_VERSION: `"${version}"` - } -}) diff --git a/bun.lockb b/bun.lockb index 187bfca8fe45b56b705f45f1b65fd4bc910c602f..de5de05156fecfc2616e1df0d18d6c1b6edf97d8 100644 GIT binary patch literal 28692 zcmeHw2{@Ha`1hexp#>#cY$+lgdqVak6)NG4$ZI(`vY%sX(J7TmN~;zXg%<4#ZKRSy z*($BHs8HGw65l<~IdjgFw?+J~>-&G-)x6j9&Y8LA{>?r2EYCeNkGoML)x(&f>K=?h zb$Vd9yhm7|2s||ZAkX>U41YS!J18{3oka`R5D}zMC_61uLz2#|HodS(b^g?tfmb6J z2lX*XSXK9OU+Fl7LvJ0H2SFhSQ#lbus8h`5rqisrKZr=4LScKtFA0c4gZ%x&f+-Y@ zUKEN9q$MDhhWHCqkJ42T4}&-tVp)ijARZ0zB8U;rJZ}C(h(|$s7{m$?w+c`wau7e_ z#@P@f{@vX4GKf(1ho-HS_~$xZ7+ECuC8ar4C>Mtp4`B+~b5h!K7TH=PSH!ao8r zDz^<{BXsz$^xFJ|vKyyyzZbKG4g7qX1zmc9p z>C7Pia5^PqD5rmXAQpjqCx}5*wy!%gC?b$T$$(CWs@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Q=J#R27M>TH*vg!!{zAd2LJr@p~{B+$(pg0GpE&#)VWxNQQcZ(eYjaFvbMbQ?Ap&^ zG-MRQ#YOT}c-tiyA%Po;9JYgj?O}QBMF#rA^5lBVmV+DvUU7~*6CcI~KT423AVaV* zNL@fw6ht8+UP!|>AriPQL|cN&D~NxG9E`h+NZ6-NzA(;-NZZ`09f@#EQLK zoqak6P8F>Ki&domYd$dOJ7B;$#7W{~L2pe`VFLf@T&9D(vJsgEv=u72F`9SRNUbbi4tL=I4O&-_TkIc z6*ft4pOcYFlQCZrSNWt@6O5b)jf$6n8`-t{vV1jfh0G=}o+H%rx0apPTEwIJXd zG_1L~Y)@x@yTDAcu-2wE@Ev`0=1^SotB-&n2n&I|HtqfVUjXx#FGjr2ojD)~N)qvy zag-#&?yVNZ;~aFQ!O&JqM1!-+;Yr`+-0!KYb2p|t>KfpdI~JbVnH=eVg^ZrZ4m8#{ a-R|`IeRUq>3~+U4&G0u>6Eeupe(7%=r@34J diff --git a/index.js b/index.js index 57f0e2e..6830805 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,14 @@ import * as reactDevToolsCore from "react-devtools-core"; +// TODO: Fix 6.0.0, this is one step in the right direction +// reactDevToolsCore.initialize({ +// appendComponentStack: true, +// breakOnConsoleErrors: false, +// showInlineWarningsAndErrors: true, +// hideConsoleLogsInStrictMode: false, +// }); + globalThis.__reactDevTools = { - version: __RDTC_VERSION, // Sync with package.json - exports: reactDevToolsCore -}; \ No newline at end of file + version: __RDTC_VERSION, + exports: reactDevToolsCore, +}; diff --git a/package.json b/package.json index 1b0a928..9f72fd4 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,15 @@ "module": "dist/index.js", "type": "module", "scripts": { - "build": "bun run build.ts" + "build": "rollup --config rollup.config.mjs" }, "devDependencies": { - "esbuild": "^0.24.0" + "@rollup/plugin-node-resolve": "^15.3.0", + "rollup": "^4.24.0", + "rollup-plugin-esbuild": "^6.1.1" }, "dependencies": { - "react-devtools-core": "^6.0.0" + "react-devtools-core": "5.3.1", + "rollup-plugin-define": "^1.0.1" } } \ No newline at end of file diff --git a/rollup.config.mjs b/rollup.config.mjs new file mode 100644 index 0000000..319b558 --- /dev/null +++ b/rollup.config.mjs @@ -0,0 +1,25 @@ +import nodeResolve from "@rollup/plugin-node-resolve"; +import esbuild from "rollup-plugin-esbuild"; +import define from 'rollup-plugin-define'; +import commonJs from '@rollup/plugin-commonjs'; +import rdtPkg from './node_modules/react-devtools-core/package.json' with { type: 'json' }; + +export default { + input: 'index.js', + output: { + file: 'dist/index.js', + format: 'iife', + compact: true, + intro: "var window = globalThis, self = globalThis, console = new Proxy({}, { get: () => () => void 0 }), setTimeout = (x) => x();" + }, + plugins: [ + nodeResolve(), + commonJs(), + define({ + replacements: { + __RDTC_VERSION: `"${rdtPkg.version}"` + } + }), + esbuild({ minify: true }) + ] +}; \ No newline at end of file