Skip to content

Commit d942ef1

Browse files
committed
Add node options to yarn build
1 parent 3d5e342 commit d942ef1

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.1",
44
"scripts": {
55
"dev": "svelte-kit dev",
6-
"build": "svelte-kit build",
6+
"build": "NODE_OPTIONS=--max_old_space_size=8192 svelte-kit build",
77
"package": "svelte-kit package",
88
"preview": "svelte-kit preview",
99
"prepare": "svelte-kit sync",

docs/svelte.config.js

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@ const config = {
4343
'@web3-react/url',
4444
'@web3-onboard/*'
4545
],
46-
plugins: [
47-
nodePolyfills({
48-
crypto: true,
49-
http: true
50-
})
51-
]
46+
plugins: [nodePolyfills({ crypto: true, http: true })]
5247
},
5348
commonjsOptions: {
5449
transformMixedEsModules: true
@@ -59,13 +54,7 @@ const config = {
5954
$fonts: resolve(process.cwd(), 'src/lib/fonts'),
6055
crypto: 'crypto-browserify',
6156
stream: 'stream-browserify',
62-
assert: 'assert',
63-
buffer: 'buffer',
64-
http: 'stream-http',
65-
https: 'https-browserify',
66-
os: 'os-browserify/browser',
67-
process: 'process/browser',
68-
util: 'util'
57+
assert: 'assert'
6958
}
7059
},
7160
plugins: [

0 commit comments

Comments
 (0)