@alphafi/alphafi-sdk 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/alphaTypes.d.ts +109 -0
- package/dist/common/cetus_mainnet_config.d.ts +2 -0
- package/dist/common/coins.d.ts +4 -0
- package/dist/common/constants.d.ts +401 -0
- package/dist/common/maps.d.ts +56 -0
- package/dist/common/pyth.d.ts +6 -0
- package/dist/common/types.d.ts +412 -0
- package/dist/example.d.ts +2 -0
- package/dist/getAirdropShare.d.ts +1 -0
- package/dist/getAllVaults.d.ts +3 -0
- package/dist/getAlphaUnlocks.d.ts +13 -0
- package/dist/getAprs.d.ts +5 -0
- package/dist/getHoldersFromTransactions.d.ts +8 -0
- package/dist/getLastAutoCompoundTime.d.ts +2 -0
- package/dist/getRebalanceHistory.d.ts +3 -0
- package/dist/getVaultBalances.d.ts +8 -0
- package/dist/getVaults.d.ts +4 -0
- package/dist/graphql/client.d.ts +3 -0
- package/dist/graphql/executeMutations.d.ts +3 -0
- package/dist/graphql/fetchAutoCompoundingEventsGql.d.ts +26 -0
- package/dist/graphql/fetchData.d.ts +10 -0
- package/dist/graphql/fetchNftHolders.d.ts +2 -0
- package/dist/graphql/fetchReceipts.d.ts +2 -0
- package/dist/graphql/mutations.d.ts +3 -0
- package/dist/graphql/parseData.d.ts +1 -0
- package/dist/graphql/parseLockedTableId.d.ts +6 -0
- package/dist/graphql/queries.d.ts +14 -0
- package/dist/graphql/types.d.ts +69 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/sui-sdk/client.d.ts +3 -0
- package/dist/sui-sdk/events/fetchAutoCompoundingEvents.d.ts +5 -0
- package/dist/sui-sdk/events/fetchEvents.d.ts +2 -0
- package/dist/sui-sdk/events/fetchLiquidityChangeEvents.d.ts +2 -0
- package/dist/sui-sdk/events/fetchRebalanceEvents.d.ts +4 -0
- package/dist/sui-sdk/events/parseData.d.ts +3 -0
- package/dist/sui-sdk/events/types.d.ts +93 -0
- package/dist/sui-sdk/functions/fetchTableData.d.ts +49 -0
- package/dist/sui-sdk/functions/fetchUserVaultBalances.d.ts +2 -0
- package/dist/sui-sdk/functions/fetchUserVaults.d.ts +2 -0
- package/dist/sui-sdk/functions/getPortfolioAmounts.d.ts +32 -0
- package/dist/sui-sdk/functions/getReceipts.d.ts +8 -0
- package/dist/sui-sdk/transactions/constants.d.ts +3 -0
- package/dist/sui-sdk/transactions/fetchTransactions.d.ts +3 -0
- package/dist/sui-sdk/transactions/types.d.ts +7 -0
- package/dist/types.d.ts +212 -0
- package/dist/utils/clmm/prices.d.ts +19 -0
- package/dist/utils/clmm/tokenAmountFromLiquidity.d.ts +10 -0
- package/dist/utils/clmm/types.d.ts +24 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/getHoldersFromTransactionsUtils.d.ts +5 -0
- package/dist/utils/getReceipts.d.ts +3 -0
- package/dist/utils/hop.d.ts +15 -0
- package/dist/utils/prices.d.ts +6 -0
- package/dist/utils/simpleCache.d.ts +9 -0
- package/dist/utils/types.d.ts +4 -0
- package/dist/utils/userHoldings.d.ts +5 -0
- package/dist/vaultFunctions.d.ts +4 -0
- package/package.json +5 -1
- package/.envrc +0 -1
- package/.eslintrc.json +0 -21
- package/.github/workflows/static.yml +0 -51
- package/.prettierrc.json +0 -27
- package/.prettierrc.json~ +0 -30
- package/__tests__/getAprs.test.ts~ +0 -9
- package/__tests__/getRebalanceHistory.test.ts~ +0 -19
- package/apr.org +0 -11
- package/babel.config.json +0 -11
- package/docs/.nojekyll +0 -1
- package/docs/assets/highlight.css +0 -78
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1448
- package/docs/functions/alphaLpBreakdown.html +0 -1
- package/docs/functions/cetusLpBreakdown.html +0 -1
- package/docs/functions/collectRewards.html +0 -1
- package/docs/functions/deposit.html +0 -1
- package/docs/functions/fetchAutoCompoundingEventsGql.html +0 -1
- package/docs/functions/fetchCetusPools.html +0 -1
- package/docs/functions/fetchChainIdentifier.html +0 -1
- package/docs/functions/fetchNftHolders.html +0 -1
- package/docs/functions/fetchPools.html +0 -1
- package/docs/functions/fetchPortfolioData.html +0 -1
- package/docs/functions/fetchProtocolData.html +0 -1
- package/docs/functions/fetchUserVaultBalances.html +0 -1
- package/docs/functions/fetchUserVaults.html +0 -1
- package/docs/functions/fetchUserWalletData.html +0 -1
- package/docs/functions/getAirdropShare.html +0 -1
- package/docs/functions/getAllDoubleAssetVaults.html +0 -1
- package/docs/functions/getAllSingleAssetVaults.html +0 -1
- package/docs/functions/getAllVaults.html +0 -1
- package/docs/functions/getAlphaVaultBalance.html +0 -1
- package/docs/functions/getApr.html +0 -1
- package/docs/functions/getAprs.html +0 -1
- package/docs/functions/getApy.html +0 -1
- package/docs/functions/getApys.html +0 -1
- package/docs/functions/getDoubleAssetVaultBalance.html +0 -1
- package/docs/functions/getDoubleAssetVaults.html +0 -1
- package/docs/functions/getRebalanceHistories.html +0 -1
- package/docs/functions/getRebalanceHistory.html +0 -1
- package/docs/functions/getSingleAssetVaultBalance.html +0 -1
- package/docs/functions/getSingleAssetVaults.html +0 -1
- package/docs/functions/getVaultBalance.html +0 -1
- package/docs/functions/getVaults.html +0 -1
- package/docs/functions/lastAutocompoundTime.html +0 -1
- package/docs/functions/parseUserWalletData.html +0 -1
- package/docs/functions/withdraw.html +0 -1
- package/docs/index.html +0 -40
- package/docs/interfaces/Coin.html +0 -5
- package/docs/interfaces/CoinPair.html +0 -3
- package/docs/interfaces/RebalanceHistoryType.html +0 -5
- package/docs/modules.html +0 -66
- package/docs/types/AlphaFiDoubleAssetVault.html +0 -1
- package/docs/types/AlphaFiSingleAssetVault.html +0 -1
- package/docs/types/AlphaFiVault.html +0 -1
- package/docs/types/AlphaFiVaultBalance.html +0 -1
- package/docs/types/AlphaPoolType.html +0 -1
- package/docs/types/AlphaReceipt.html +0 -1
- package/docs/types/AlphaVaultBalance.html +0 -1
- package/docs/types/AutoCompoundingEventNode.html +0 -1
- package/docs/types/CetusInvestor.html +0 -1
- package/docs/types/CetusPoolType.html +0 -1
- package/docs/types/CetusSwapOptions.html +0 -1
- package/docs/types/CoinAmounts.html +0 -1
- package/docs/types/CoinName.html +0 -1
- package/docs/types/CoinType.html +0 -1
- package/docs/types/CreatePoolOptions.html +0 -1
- package/docs/types/DoubleAssetVaultBalance.html +0 -1
- package/docs/types/Icon.html +0 -1
- package/docs/types/LpBreakdownType.html +0 -1
- package/docs/types/ParentProtocolName.html +0 -1
- package/docs/types/PoolName.html +0 -1
- package/docs/types/PoolReceipt.html +0 -1
- package/docs/types/PoolType.html +0 -1
- package/docs/types/Receipt.html +0 -1
- package/docs/types/SingleAssetVaultBalance.html +0 -1
- package/docs/types/SuiNetwork.html +0 -1
- package/docs/types/SwapOptions.html +0 -1
- package/docs/types/TickSpacing.html +0 -1
- package/docs/types/TransactionBlockType.html +0 -1
- package/events.csv +0 -61
- package/events.csv~ +0 -71
- package/jest.config.js +0 -5
- package/package.json~ +0 -56
- package/tsconfig.json~ +0 -16
- package/tsconfig.test.json~ +0 -17
- package/typedoc.json +0 -8
- package/webpack.config.cjs~ +0 -63
- package/webpack.config.js +0 -54
- package/webpack.config.js~ +0 -50
- package/webpack.config.ts~ +0 -64
package/package.json~
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "sui-alpha-sdk",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"scripts": {
|
|
8
|
-
"build": "npm run prettier && npm run lint && tsc -p tsconfig.build.json && webpack --config webpack.config.js",
|
|
9
|
-
"lint": "eslint 'src/**/*.ts' --fix",
|
|
10
|
-
"prettier": "prettier --write 'src/**/*.ts'",
|
|
11
|
-
"test": "jest"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "",
|
|
15
|
-
"license": "ISC",
|
|
16
|
-
"devDependencies": {
|
|
17
|
-
"@babel/cli": "7.24.8",
|
|
18
|
-
"@babel/core": "7.25.2",
|
|
19
|
-
"@babel/preset-env": "7.25.3",
|
|
20
|
-
"@babel/preset-typescript": "7.24.7",
|
|
21
|
-
"@types/bn.js": "^5.1.5",
|
|
22
|
-
"@types/jest": "^29.5.12",
|
|
23
|
-
"@types/node": "20.14.9",
|
|
24
|
-
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
25
|
-
"@typescript-eslint/parser": "^7.14.1",
|
|
26
|
-
"babel-loader": "^9.1.3",
|
|
27
|
-
"eslint": "^8.57.0",
|
|
28
|
-
"eslint-config-prettier": "^9.1.0",
|
|
29
|
-
"eslint-plugin-import": "^2.29.1",
|
|
30
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
31
|
-
"jest": "^29.7.0",
|
|
32
|
-
"prettier": "^3.3.2",
|
|
33
|
-
"source-map-loader": "^5.0.0",
|
|
34
|
-
"ts-jest": "^29.2.1",
|
|
35
|
-
"ts-loader": "^9.5.1",
|
|
36
|
-
"ts-node": "^10.9.2",
|
|
37
|
-
"typescript": "^5.5.3",
|
|
38
|
-
"webpack": "^5.92.1",
|
|
39
|
-
"webpack-cli": "^5.1.4"
|
|
40
|
-
},
|
|
41
|
-
"dependencies": {
|
|
42
|
-
"@7kprotocol/sdk-ts": "^2.1.0",
|
|
43
|
-
"@aws-sdk/client-dynamodb": "^3.609.0",
|
|
44
|
-
"@cetusprotocol/cetus-sui-clmm-sdk": "5.1.2",
|
|
45
|
-
"@hop.ag/sdk": "^3.1.6",
|
|
46
|
-
"@mysten/dapp-kit": "0.14.16",
|
|
47
|
-
"@mysten/sui": "1.6.0",
|
|
48
|
-
"@mysten/wallet-standard": "0.13.1",
|
|
49
|
-
"@pythnetwork/pyth-sui-js": "^2.0.0",
|
|
50
|
-
"@types/node": "^20.14.10",
|
|
51
|
-
"bech32": "^2.0.0",
|
|
52
|
-
"dotenv": "^16.4.5",
|
|
53
|
-
"fs": "^0.0.1-security",
|
|
54
|
-
"readline": "^1.3.0"
|
|
55
|
-
}
|
|
56
|
-
}
|
package/tsconfig.json~
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "./dist",
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"forceConsistentCasingInFileNames": true,
|
|
8
|
-
"strict": true,
|
|
9
|
-
"skipLibCheck": true,
|
|
10
|
-
"declaration": true,
|
|
11
|
-
"declarationDir": "./dist",
|
|
12
|
-
"types": ["jest", "node"]
|
|
13
|
-
},
|
|
14
|
-
"include": ["src"],
|
|
15
|
-
"exclude": ["node_modules", "**/*.spec.ts"]
|
|
16
|
-
}
|
package/tsconfig.test.json~
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"strict": true,
|
|
10
|
-
"skipLibCheck": true,
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"declarationDir": "./dist",
|
|
13
|
-
"types": ["jest", "node"]
|
|
14
|
-
},
|
|
15
|
-
"include": ["src"],
|
|
16
|
-
"exclude": ["node_modules", "**/*.spec.ts"]
|
|
17
|
-
}
|
package/typedoc.json
DELETED
package/webpack.config.cjs~
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as path from "path";
|
|
2
|
-
|
|
3
|
-
const config = {
|
|
4
|
-
entry: "./src/index.ts",
|
|
5
|
-
target: "web",
|
|
6
|
-
mode: "production", // or 'development' depending on your needs
|
|
7
|
-
module: {
|
|
8
|
-
rules: [
|
|
9
|
-
{
|
|
10
|
-
test: /\.ts$/,
|
|
11
|
-
use: [
|
|
12
|
-
{
|
|
13
|
-
loader: "babel-loader",
|
|
14
|
-
options: {
|
|
15
|
-
presets: ["@babel/preset-env", "@babel/preset-typescript"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
"ts-loader",
|
|
19
|
-
],
|
|
20
|
-
exclude: /node_modules/,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
test: /\.js$/,
|
|
24
|
-
use: ["source-map-loader"],
|
|
25
|
-
enforce: "pre",
|
|
26
|
-
exclude: /node_modules/,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
resolve: {
|
|
31
|
-
extensions: [".ts", ".js"],
|
|
32
|
-
fallback: {
|
|
33
|
-
fs: false,
|
|
34
|
-
path: require.resolve("path-browserify"),
|
|
35
|
-
crypto: require.resolve("crypto-browserify"),
|
|
36
|
-
stream: require.resolve("stream-browserify"),
|
|
37
|
-
assert: require.resolve("assert/"),
|
|
38
|
-
http: require.resolve("stream-http"),
|
|
39
|
-
https: require.resolve("https-browserify"),
|
|
40
|
-
os: require.resolve("os-browserify/browser"),
|
|
41
|
-
url: require.resolve("url/"),
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
output: {
|
|
45
|
-
filename: "[name].bundle.js",
|
|
46
|
-
path: path.resolve(__dirname, "dist"),
|
|
47
|
-
libraryTarget: "umd",
|
|
48
|
-
globalObject: "this",
|
|
49
|
-
},
|
|
50
|
-
optimization: {
|
|
51
|
-
splitChunks: {
|
|
52
|
-
chunks: "all",
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
devtool: "source-map", // Generate source maps
|
|
56
|
-
performance: {
|
|
57
|
-
hints: "warning",
|
|
58
|
-
maxAssetSize: 1024000, // Set size in bytes (1 MiB)
|
|
59
|
-
maxEntrypointSize: 1048576, // Set size in bytes (1 MiB)
|
|
60
|
-
},
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
export default config;
|
package/webpack.config.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
3
|
-
|
|
4
|
-
module.exports = {
|
|
5
|
-
entry: "./src/index.ts",
|
|
6
|
-
target: "web",
|
|
7
|
-
mode: "production", // or 'development' depending on your needs
|
|
8
|
-
module: {
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
test: /\.graphql$/,
|
|
12
|
-
exclude: /node_modules/,
|
|
13
|
-
loader: "graphql-tag/loader",
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
test: /\.ts$/,
|
|
17
|
-
use: [
|
|
18
|
-
{
|
|
19
|
-
loader: "babel-loader",
|
|
20
|
-
options: {
|
|
21
|
-
presets: ["@babel/preset-env", "@babel/preset-typescript"],
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
"ts-loader",
|
|
25
|
-
],
|
|
26
|
-
exclude: /node_modules/,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
test: /\.js$/,
|
|
30
|
-
use: ["source-map-loader"],
|
|
31
|
-
enforce: "pre",
|
|
32
|
-
exclude: /node_modules/,
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
},
|
|
36
|
-
resolve: {
|
|
37
|
-
extensions: [".ts", ".js"],
|
|
38
|
-
},
|
|
39
|
-
output: {
|
|
40
|
-
filename: "index.js",
|
|
41
|
-
path: path.resolve(__dirname, "dist"),
|
|
42
|
-
libraryTarget: "umd",
|
|
43
|
-
globalObject: "this",
|
|
44
|
-
},
|
|
45
|
-
devtool: "source-map", // Generate source maps
|
|
46
|
-
performance: {
|
|
47
|
-
hints: "warning",
|
|
48
|
-
maxAssetSize: 1024000, // Set size in bytes (1 MiB)
|
|
49
|
-
maxEntrypointSize: 1048576, // Set size in bytes (1 MiB)
|
|
50
|
-
},
|
|
51
|
-
plugins: [
|
|
52
|
-
new CleanWebpackPlugin(), // Clean output directory before build
|
|
53
|
-
],
|
|
54
|
-
};
|
package/webpack.config.js~
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const path = require("path");
|
|
2
|
-
|
|
3
|
-
module.exports = {
|
|
4
|
-
entry: "./src/index.ts",
|
|
5
|
-
target: "web",
|
|
6
|
-
mode: "production", // or 'development' depending on your needs
|
|
7
|
-
module: {
|
|
8
|
-
rules: [
|
|
9
|
-
{
|
|
10
|
-
test: /\.ts$/,
|
|
11
|
-
use: [
|
|
12
|
-
{
|
|
13
|
-
loader: "babel-loader",
|
|
14
|
-
options: {
|
|
15
|
-
presets: ["@babel/preset-env", "@babel/preset-typescript"],
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
"ts-loader",
|
|
19
|
-
],
|
|
20
|
-
exclude: /node_modules/,
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
test: /\.js$/,
|
|
24
|
-
use: ["source-map-loader"],
|
|
25
|
-
enforce: "pre",
|
|
26
|
-
exclude: /node_modules/,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
resolve: {
|
|
31
|
-
extensions: [".ts", ".js"],
|
|
32
|
-
},
|
|
33
|
-
output: {
|
|
34
|
-
filename: "[name].bundle.js",
|
|
35
|
-
path: path.resolve(__dirname, "dist"),
|
|
36
|
-
libraryTarget: "umd",
|
|
37
|
-
globalObject: "this",
|
|
38
|
-
},
|
|
39
|
-
optimization: {
|
|
40
|
-
splitChunks: {
|
|
41
|
-
chunks: "all",
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
devtool: "source-map", // Generate source maps
|
|
45
|
-
performance: {
|
|
46
|
-
hints: "warning",
|
|
47
|
-
maxAssetSize: 1024000, // Set size in bytes (1 MiB)
|
|
48
|
-
maxEntrypointSize: 1048576, // Set size in bytes (1 MiB)
|
|
49
|
-
},
|
|
50
|
-
};
|
package/webpack.config.ts~
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import path from "path";
|
|
2
|
-
import webpack from "webpack";
|
|
3
|
-
|
|
4
|
-
const config: webpack.Configuration = {
|
|
5
|
-
entry: "./src/index.ts",
|
|
6
|
-
target: "web",
|
|
7
|
-
mode: "production", // or 'development' depending on your needs
|
|
8
|
-
module: {
|
|
9
|
-
rules: [
|
|
10
|
-
{
|
|
11
|
-
test: /\.ts$/,
|
|
12
|
-
use: [
|
|
13
|
-
{
|
|
14
|
-
loader: "babel-loader",
|
|
15
|
-
options: {
|
|
16
|
-
presets: ["@babel/preset-env", "@babel/preset-typescript"],
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
"ts-loader",
|
|
20
|
-
],
|
|
21
|
-
exclude: /node_modules/,
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
test: /\.js$/,
|
|
25
|
-
use: ["source-map-loader"],
|
|
26
|
-
enforce: "pre",
|
|
27
|
-
exclude: /node_modules/,
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
resolve: {
|
|
32
|
-
extensions: [".ts", ".js"],
|
|
33
|
-
fallback: {
|
|
34
|
-
fs: false,
|
|
35
|
-
path: require.resolve("path-browserify"),
|
|
36
|
-
crypto: require.resolve("crypto-browserify"),
|
|
37
|
-
stream: require.resolve("stream-browserify"),
|
|
38
|
-
assert: require.resolve("assert/"),
|
|
39
|
-
http: require.resolve("stream-http"),
|
|
40
|
-
https: require.resolve("https-browserify"),
|
|
41
|
-
os: require.resolve("os-browserify/browser"),
|
|
42
|
-
url: require.resolve("url/"),
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
output: {
|
|
46
|
-
filename: "[name].bundle.js",
|
|
47
|
-
path: path.resolve(__dirname, "dist"),
|
|
48
|
-
libraryTarget: "umd",
|
|
49
|
-
globalObject: "this",
|
|
50
|
-
},
|
|
51
|
-
optimization: {
|
|
52
|
-
splitChunks: {
|
|
53
|
-
chunks: "all",
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
devtool: "source-map", // Generate source maps
|
|
57
|
-
performance: {
|
|
58
|
-
hints: "warning",
|
|
59
|
-
maxAssetSize: 1024000, // Set size in bytes (1 MiB)
|
|
60
|
-
maxEntrypointSize: 1048576, // Set size in bytes (1 MiB)
|
|
61
|
-
},
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
export default config;
|