@rozenite/vite-plugin 1.0.0-alpha.8 → 1.0.0-alpha.9
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 +16 -5
- package/dist/index.js +16 -5
- package/dist/react-native-plugin.d.ts.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
260
|
-
|
|
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
|
-
|
|
257
|
-
|
|
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,
|
|
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