Skip to content

Commit c598df3

Browse files
author
uihp
committed
fix: issue tw-in-js#517
1 parent df4bb81 commit c598df3

File tree

3 files changed

+18372
-14180
lines changed

3 files changed

+18372
-14180
lines changed

package.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@
3131
}
3232
],
3333
"engines": {
34-
"node": ">=14.15.0",
35-
"pnpm": "^7.0.0"
34+
"node": ">=14.15.0"
3635
},
3736
"// https://nodejs.org/dist/latest-v16.x/docs/api/corepack.html": "",
3837
"packageManager": "[email protected]",
@@ -45,7 +44,7 @@
4544
"// start — use 'BROWSER=none' to prevent vite to open a browser if within codesandbox or stackblitz": "",
4645
"scripts": {
4746
"start": "BROWSER=none pnpm test:ui",
48-
"build": "pnpm --filter='./packages/*' --if-present build",
47+
"build": "pnpm --filter ./packages/* --if-present build",
4948
"check": "TIMING=1 eslint --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.svelte --ignore-path .gitignore .",
5049
"check:fix": "pnpm check --fix",
5150
"format": "pnpm prettier . '!pnpm-lock.yaml'",
@@ -93,7 +92,6 @@
9392
},
9493
"pnpm": {
9594
"patchedDependencies": {
96-
"@size-limit/[email protected]": "patches/@[email protected]",
9795
9896
9997
"@jsenv/[email protected]": "patches/@[email protected]",
@@ -102,7 +100,6 @@
102100
},
103101
"updateConfig": {
104102
"ignoreDependencies": [
105-
"@size-limit/esbuild",
106103
"monaco-editor",
107104
"@jspm/generator",
108105
"@jsenv/logger",

packages/core/src/observe.ts

-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ export function mo<Theme extends BaseTheme = BaseTheme, Target = unknown>(
2727
subtree: true,
2828
childList: true,
2929
})
30-
31-
// handle class attribute on target
32-
handleClassAttributeChange(target as Element)
33-
34-
// handle children of target
35-
handleMutationRecords([{ target, type: '' }])
3630
},
3731
disconnect() {
3832
observer.disconnect()

0 commit comments

Comments
 (0)