Skip to content

Commit bb7ab7c

Browse files
committed
Add test for lodash-es Uint8Array conflict
1 parent 300e033 commit bb7ab7c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

examples/vanilla/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"devDependencies": {
1010
"@types/node": "^18.7.23",
11+
"lodash-es": "^4.17.21",
1112
"ohmyfetch": "^0.4.20",
1213
"typescript": "^5.0.0",
1314
"vite": "^4.0.0",

examples/vanilla/src/main.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ import { Buffer } from 'node:buffer'
22
import { resolve } from 'node:path'
33
import * as process from 'node:process'
44
import fs from 'node:fs'
5+
import { cloneDeep } from 'lodash-es'
56
import { fetch } from 'ohmyfetch'
67

8+
const something = {
9+
some: true,
10+
else: 1,
11+
inner: {
12+
buffer: [0, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7],
13+
},
14+
}
15+
716
console.log(fetch)
817
console.log(resolve('.'))
918
console.log(process)
@@ -13,3 +22,4 @@ console.log(Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]).readBi
1322
console.log(Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]))
1423
console.log(Array)
1524
console.log(fs)
25+
console.log(cloneDeep(something))

pnpm-lock.yaml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)