forked from hashgraph/hedera-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js
50 lines (50 loc) · 2.29 KB
/
vite.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/** @type {import('vite').UserConfig} */
export default {
server: {
hmr: false,
force: true,
},
envDir: "./",
build: {
polyfillDynamicImport: false,
},
optimizeDeps: {
entries: [
"./test/unit/AccountId.js",
"./test/unit/Hbar.js",
"./test/unit/keccak256.js",
"./test/unit/Transaction.js",
"./test/unit/TransactionId.js",
"./test/integration/AccountBalanceIntegrationTest.js",
"./test/integration/ClientIntegrationTest.js",
"./test/integration/TokenCreateIntegrationTest.js",
"./test/integration/TransactionIntegrationTest.js",
"./test/integration/TransactionResponseTest.js",
],
},
resolve: {
alias: {
// redirect src/ to src/browser
// note that this is NOT needed when consuming this package as the browser field in package.json
// will take care of this
"../../src/index.js": "../../src/browser.js",
"../src/index.js": "../src/browser.js",
// TODO: extract `encoding/hex.js` etc into a variable and call a function to generate
// all the prefixes.
"../../../src/encoding/hex.js": "../../../src/encoding/hex.browser.js",
"../../src/encoding/hex.js": "../../src/encoding/hex.browser.js",
"../src/encoding/hex.js": "../src/encoding/hex.browser.js",
"src/encoding/hex.js": "src/encoding/hex.browser.js",
"../encoding/hex.js": "../encoding/hex.browser.js",
"./encoding/hex.js": "./encoding/hex.browser.js",
"../src/encoding/utf8.js": "../src/encoding/utf8.browser.js",
"../../src/encoding/utf8.js": "../../src/encoding/utf8.browser.js",
"../encoding/utf8.js": "../encoding/utf8.browser.js",
"../src/cryptography/sha384.js": "../src/cryptography/sha384.browser.js",
"../cryptography/sha384.js": "../cryptography/sha384.browser.js",
"./client/NodeIntegrationTestEnv.js": "./client/WebIntegrationTestEnv.js",
"../integration/client/NodeIntegrationTestEnv.js": "../integration/client/WebIntegrationTestEnv.js",
"../../src/client/NodeClient.js": "../../src/client/WebClient.js",
},
},
};