Skip to content

Commit

Permalink
add "use client" directive
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayterx authored and Hacksore committed Aug 7, 2023
1 parent 38434f1 commit 007cd53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ export default {
format: "cjs",
exports: "auto",
sourcemap: true,
banner: '"use client";',
},
{
file: packageJson.module,
format: "esm",
sourcemap: true,
banner: '"use client";',
},
],
external,
Expand All @@ -31,6 +33,8 @@ export default {
tsconfig: "./tsconfig.json",
}),
commonjs(),
terser(),
terser({
compress: { directives: false },
}),
],
};

0 comments on commit 007cd53

Please sign in to comment.