forked from hashgraph/hedera-sdk-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.cjs
41 lines (41 loc) · 1.7 KB
/
vite.config.cjs
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
module.exports = {
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/encoding/hex.js": "../../src/encoding/hex.browser.js",
"../src/encoding/hex.js": "../src/encoding/hex.browser.js",
"../encoding/hex.js": "../encoding/hex.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",
},
},
};