Skip to content

Commit 4d1c75a

Browse files
committed
feat: remove structuredClone polyfill
similiar to the babel topic we give the responsibility of polyfilling/transpiling to the implementations of the module
1 parent 5a10eab commit 4d1c75a

File tree

4 files changed

+0
-19
lines changed

4 files changed

+0
-19
lines changed

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"files": [
2424
"dist"
2525
],
26-
"dependencies": {
27-
"@ungap/structured-clone": "^1.0.1"
28-
},
2926
"devDependencies": {
3027
"prettier": "^3.3.3",
3128
"vite": "^6.3.5",

pnpm-lock.yaml

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

src/deserialize.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import structuredClone from "@ungap/structured-clone"
2-
31
export function deserialize(originalResponse, options = {}) {
42
const response = structuredClone(originalResponse)
53
if (!options) {

vite.config.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { defineConfig } from "vite"
22
import { resolve } from "path"
33

4-
const external = ["@ungap/structured-clone"]
5-
64
export default defineConfig({
75
build: {
86
lib: {
@@ -12,9 +10,6 @@ export default defineConfig({
1210
},
1311
formats: ["es"],
1412
fileName: (_format, entryName) => `${entryName}.js`
15-
},
16-
rollupOptions: {
17-
external
1813
}
1914
}
2015
})

0 commit comments

Comments
 (0)