Skip to content

Commit

Permalink
chore: remove text-encoding polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Jul 2, 2024
1 parent 26fa521 commit 8128dc0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/mask/.webpack/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ export async function createConfiguration(_inputFlags: BuildFlags): Promise<webp
stream: require.resolve('stream-browserify'),
crypto: require.resolve('crypto-browserify'),
zlib: require.resolve('zlib-browserify'),
'text-encoding': require.resolve('@sinonjs/text-encoding'),
},
conditionNames: ['mask-src', '...'],
},
Expand Down Expand Up @@ -201,8 +200,9 @@ export async function createConfiguration(_inputFlags: BuildFlags): Promise<webp
},
}),
new ProvidePlugin({
// Polyfill for Node global "Buffer" variable
// Widely used Node.js global variable
Buffer: [require.resolve('buffer'), 'Buffer'],
// same as https://github.com/MetaMask/extension-provider/issues/48
'process.nextTick': require.resolve('next-tick'),
}),
new EnvironmentPlugin({
Expand Down
1 change: 0 additions & 1 deletion packages/mask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
"@msgpack/msgpack": "^3.0.0-beta2",
"@react-hookz/web": "^24.0.4",
"@servie/events": "^3.0.0",
"@sinonjs/text-encoding": "^0.7.2",
"@splinetool/runtime": "0.9.342",
"@tanstack/query-async-storage-persister": "^5.48.0",
"@tanstack/react-query-devtools": "^5.48.0",
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8128dc0

Please sign in to comment.