tungsten 0.1.32 → 0.1.33

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.
@@ -5,7 +5,7 @@ import { terser } from "rollup-plugin-terser";
5
5
  //import terser from "@rollup/plugin-terser" // to do
6
6
  //import gzip from "rollup-plugin-gzip"
7
7
  import jsonModule from "@rollup/plugin-json";
8
- const json = jsonModule.default;
8
+ const json = typeof jsonModule === "function" ? jsonModule : jsonModule.default;
9
9
  import { visualizer } from "rollup-plugin-visualizer";
10
10
  const rollupConfig = {
11
11
  plugins: [json(), nodeResolve(), commonjs(),
@@ -5,7 +5,7 @@ import { terser } from "rollup-plugin-terser";
5
5
  //import terser from "@rollup/plugin-terser" // to do
6
6
  //import gzip from "rollup-plugin-gzip"
7
7
  import jsonModule from "@rollup/plugin-json";
8
- const json = jsonModule.default;
8
+ const json = typeof jsonModule === "function" ? jsonModule : jsonModule.default;
9
9
  const rollupConfig = {
10
10
  plugins: [json(), nodeResolve(), commonjs(),
11
11
  // must be before babel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tungsten",
3
- "version": "0.1.32",
3
+ "version": "0.1.33",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "bin": {