wildpig 2.2.4 → 2.2.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wildpig",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "author": "eriktse",
5
5
  "type": "module",
6
6
  "peerDependencies": {
package/scripts/build.ts CHANGED
@@ -32,7 +32,7 @@ export const build = async () => {
32
32
  // 正式编译
33
33
  await Bun.build({
34
34
  entrypoints: [path.resolve(__dirname, "../scripts/prod.ts")],
35
- minify: true, // 压缩
35
+ minify: false, // 压缩
36
36
  target: "bun",
37
37
  outdir: "./dist",
38
38
  format: "esm",
@@ -8,7 +8,7 @@ export const ServerDataGuard = () => {
8
8
  const navigate = useNavigate();
9
9
  useEffect(() => {
10
10
  // serverData清空
11
- getServerDataStore<any>().set(undefined);
11
+ // getServerDataStore<any>().set(undefined);
12
12
 
13
13
  const pathname = location.pathname;
14
14
  const matches = matchRoutes(pageRoutes, pathname);