next-blurhash-previews 0.0.3-beta12 → 0.0.3-beta16

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-blurhash-previews",
3
- "version": "0.0.3-beta12",
3
+ "version": "0.0.3-beta16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -9,14 +9,14 @@ export default function writeBootstrapScript() {
9
9
  "utf8"
10
10
  );
11
11
  const bootstrapScript = fs.readFileSync(
12
- "./build/imageWithPreview.js",
12
+ "./build/imageWithPreview.cjs",
13
13
  "utf8"
14
14
  );
15
15
  BootstrapModule = BootstrapModule.replace(
16
16
  "/*HERE*/",
17
17
  bootstrapScript.replace(/[\r\n]\s*$/, "").replace(/`/g, "\\`")
18
18
  ).replace(/\${/g, "\\${");
19
- fs.writeFileSync("./imagePreviewBootstrap.js", BootstrapModule);
19
+ fs.writeFileSync("./imagePreviewBootstrap.cjs", BootstrapModule);
20
20
  },
21
21
  };
22
22
  }
package/vite.config.ts CHANGED
@@ -9,7 +9,7 @@ export default defineConfig({
9
9
  lib: {
10
10
  entry: "components/imageWithPreview.tsx",
11
11
  formats: ["cjs"],
12
- fileName: () => "imageWithPreview.js",
12
+ fileName: () => "imageWithPreview.cjs",
13
13
  name: "imageWithPreview",
14
14
  },
15
15
  //minify: false,