Skip to content

Commit 09f630c

Browse files
committed
Update docs
1 parent 210032e commit 09f630c

File tree

1 file changed

+25
-7
lines changed

1 file changed

+25
-7
lines changed

packages/core/README.md

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,6 @@ module.exports = {
439439

440440
The above webpack 5 example can be used in the `craco.config.js` file at the root level in this case.
441441

442-
**Note:** currently still facing some challenges building with CRA and CRACO for hardware wallets
443-
444442
### SvelteKit
445443

446444
Add the following dev dependencies:
@@ -462,20 +460,28 @@ const config = {
462460
preprocess: preprocess(),
463461
kit: {
464462
adapter: adapter(),
465-
target: '#svelte',
466463
vite: {
467464
plugins: [
468465
development &&
469466
nodePolyfills({
470467
include: [
471468
'node_modules/**/*.js',
472469
new RegExp('node_modules/.vite/.*js')
473-
]
470+
],
471+
http: true,
472+
crypto: true
474473
})
475474
],
475+
resolve: {
476+
alias: {
477+
crypto: 'crypto-browserify',
478+
stream: 'stream-browserify',
479+
assert: 'assert'
480+
}
481+
},
476482
build: {
477483
rollupOptions: {
478-
plugins: [nodePolyfills()]
484+
plugins: [nodePolyfills({ crypto: true, http: true })]
479485
},
480486
commonjsOptions: {
481487
transformMixedEsModules: true
@@ -507,12 +513,24 @@ export default {
507513
plugins: [
508514
development &&
509515
nodePolyfills({
510-
include: ['node_modules/**/*.js', new RegExp('node_modules/.vite/.*js')]
516+
include: [
517+
'node_modules/**/*.js',
518+
new RegExp('node_modules/.vite/.*js')
519+
],
520+
http: true,
521+
crypto: true
511522
})
512523
],
524+
resolve: {
525+
alias: {
526+
crypto: 'crypto-browserify',
527+
stream: 'stream-browserify',
528+
assert: 'assert'
529+
}
530+
},
513531
build: {
514532
rollupOptions: {
515-
plugins: [nodePolyfills()]
533+
plugins: [nodePolyfills({ crypto: true, http: true })]
516534
},
517535
commonjsOptions: {
518536
transformMixedEsModules: true

0 commit comments

Comments
 (0)