@forsakringskassan/vite-lib-config 5.13.3 → 5.13.4

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.
@@ -10940,10 +10940,10 @@ function babelPlugin() {
10940
10940
  if (!transformed) {
10941
10941
  return null;
10942
10942
  }
10943
- const { code: code2, map } = transformed;
10943
+ const { code: code2, map = null } = transformed;
10944
10944
  return {
10945
10945
  code: code2 ?? src,
10946
- map: map ?? null
10946
+ map
10947
10947
  };
10948
10948
  }
10949
10949
  };
@@ -10932,10 +10932,10 @@ function babelPlugin() {
10932
10932
  if (!transformed) {
10933
10933
  return null;
10934
10934
  }
10935
- const { code: code2, map } = transformed;
10935
+ const { code: code2, map = null } = transformed;
10936
10936
  return {
10937
10937
  code: code2 ?? src,
10938
- map: map ?? null
10938
+ map
10939
10939
  };
10940
10940
  }
10941
10941
  };
@@ -813,8 +813,11 @@ function updateBuildScripts(pkg, options) {
813
813
  return result;
814
814
  }
815
815
  async function writeBuildScripts(cwd, options) {
816
- const result = await readJsonFile(cwd, "package.json");
817
- const { data: pkg, indent, trailer } = result;
816
+ const {
817
+ data: pkg,
818
+ indent,
819
+ trailer
820
+ } = await readJsonFile(cwd, "package.json");
818
821
  const updated = JSON.stringify(
819
822
  updateBuildScripts(pkg, options),
820
823
  void 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vite-lib-config",
3
- "version": "5.13.3",
3
+ "version": "5.13.4",
4
4
  "description": "Försäkringskassan toolchain to build libraries with Vite",
5
5
  "keywords": [
6
6
  "vite"