@nsxbet/admin-sdk 0.9.1 → 0.9.2
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/sdk-version.js +1 -1
- package/dist/vite/config.js +5 -1
- package/package.json +1 -1
package/dist/sdk-version.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Semver of @nsxbet/admin-sdk (synced from package.json by scripts/write-sdk-version.mjs).
|
|
3
3
|
* Do not edit manually — run `node scripts/write-sdk-version.mjs` after version bumps.
|
|
4
4
|
*/
|
|
5
|
-
export const SDK_PACKAGE_VERSION = "0.9.
|
|
5
|
+
export const SDK_PACKAGE_VERSION = "0.9.2";
|
package/dist/vite/config.js
CHANGED
|
@@ -134,10 +134,14 @@ export function adminModule(options = {}) {
|
|
|
134
134
|
}
|
|
135
135
|
const buildConfigPlugin = {
|
|
136
136
|
name: "admin-module-build-config",
|
|
137
|
-
config(_config, { command }) {
|
|
137
|
+
config(_config, { command, mode }) {
|
|
138
138
|
if (command !== "build" || !isModuleBuild())
|
|
139
139
|
return;
|
|
140
140
|
return {
|
|
141
|
+
define: {
|
|
142
|
+
"process.env": {},
|
|
143
|
+
"process.env.NODE_ENV": JSON.stringify(mode === "development" ? "development" : "production"),
|
|
144
|
+
},
|
|
141
145
|
build: {
|
|
142
146
|
outDir,
|
|
143
147
|
emptyOutDir: true,
|