@rozenite/vite-plugin 1.0.0-alpha.8 → 1.0.0

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/index.cjs CHANGED
@@ -246,7 +246,6 @@ const rozeniteReactNativePlugin = () => {
246
246
  (_a = config.build).rollupOptions ?? (_a.rollupOptions = {});
247
247
  config.build.lib = {
248
248
  entry: path.resolve(projectRoot, "react-native.ts"),
249
- formats: ["es", "cjs"],
250
249
  fileName: (format) => `react-native.${format === "es" ? "js" : "cjs"}`
251
250
  };
252
251
  config.build.rollupOptions.external = (id) => {
@@ -255,10 +254,22 @@ const rozeniteReactNativePlugin = () => {
255
254
  }
256
255
  return !id.startsWith(".") && !path.isAbsolute(id);
257
256
  };
258
- config.build.rollupOptions.output = {
259
- exports: "named",
260
- interop: "auto"
261
- };
257
+ config.build.rollupOptions.output = [
258
+ {
259
+ format: "es",
260
+ exports: "named",
261
+ interop: "auto",
262
+ chunkFileNames: "[name].js",
263
+ ...config.build.rollupOptions.output ?? {}
264
+ },
265
+ {
266
+ format: "cjs",
267
+ exports: "named",
268
+ interop: "auto",
269
+ chunkFileNames: "[name].cjs",
270
+ ...config.build.rollupOptions.output ?? {}
271
+ }
272
+ ];
262
273
  delete config.build.rollupOptions.input;
263
274
  }
264
275
  };
package/dist/index.js CHANGED
@@ -243,7 +243,6 @@ const rozeniteReactNativePlugin = () => {
243
243
  (_a = config.build).rollupOptions ?? (_a.rollupOptions = {});
244
244
  config.build.lib = {
245
245
  entry: path.resolve(projectRoot, "react-native.ts"),
246
- formats: ["es", "cjs"],
247
246
  fileName: (format) => `react-native.${format === "es" ? "js" : "cjs"}`
248
247
  };
249
248
  config.build.rollupOptions.external = (id) => {
@@ -252,10 +251,22 @@ const rozeniteReactNativePlugin = () => {
252
251
  }
253
252
  return !id.startsWith(".") && !path.isAbsolute(id);
254
253
  };
255
- config.build.rollupOptions.output = {
256
- exports: "named",
257
- interop: "auto"
258
- };
254
+ config.build.rollupOptions.output = [
255
+ {
256
+ format: "es",
257
+ exports: "named",
258
+ interop: "auto",
259
+ chunkFileNames: "[name].js",
260
+ ...config.build.rollupOptions.output ?? {}
261
+ },
262
+ {
263
+ format: "cjs",
264
+ exports: "named",
265
+ interop: "auto",
266
+ chunkFileNames: "[name].cjs",
267
+ ...config.build.rollupOptions.output ?? {}
268
+ }
269
+ ];
259
270
  delete config.build.rollupOptions.input;
260
271
  }
261
272
  };
@@ -1 +1 @@
1
- {"version":3,"file":"react-native-plugin.d.ts","sourceRoot":"","sources":["../src/react-native-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG9B,eAAO,MAAM,yBAAyB,QAAO,MA+B5C,CAAC"}
1
+ {"version":3,"file":"react-native-plugin.d.ts","sourceRoot":"","sources":["../src/react-native-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAG9B,eAAO,MAAM,yBAAyB,QAAO,MA0C5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rozenite/vite-plugin",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0",
4
4
  "description": "Vite plugin for developing React Native DevTools plugins with hot reload and development tools",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -48,6 +48,6 @@
48
48
  "@types/ejs": "^3.1.5"
49
49
  },
50
50
  "engines": {
51
- "node": ">=22"
51
+ "node": ">=20"
52
52
  }
53
53
  }