File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change
1
+ import replace from "@rollup/plugin-replace"
2
+ import filesize from "rollup-plugin-filesize"
3
+ import { terser } from "rollup-plugin-terser"
4
+ import typescript from "@rollup/plugin-typescript"
5
+
6
+ const pkg = require ( "./package.json" )
7
+
8
+ /** @type {import('rollup').RollupOptions } */
9
+ export default {
10
+ input : "src/index.ts" ,
11
+ output : [
12
+ {
13
+ file : pkg . main ,
14
+ format : "cjs" ,
15
+ } ,
16
+ {
17
+ file : pkg . module ,
18
+ format : "esm" ,
19
+ } ,
20
+ ] ,
21
+ plugins : [
22
+ typescript ( ) ,
23
+ replace ( {
24
+ REACTOTRON_CORE_CLIENT_VERSION : pkg . version ,
25
+ } ) ,
26
+ process . env . NODE_ENV === "production" ? terser ( ) : null ,
27
+ filesize ( ) ,
28
+ ] ,
29
+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const pkg = require("./package.json")
7
7
8
8
/** @type {import('rollup').RollupOptions } */
9
9
export default {
10
- input : "src/reactotron-apollo-client .ts" ,
10
+ input : "src/index .ts" ,
11
11
output : [
12
12
{
13
13
file : pkg . main ,
Original file line number Diff line number Diff line change
1
+ import apolloClient from "./reactotron-apollo-client"
1
2
export * from "./reactotron-apollo-client"
3
+ export default apolloClient
You can’t perform that action at this time.
0 commit comments