Skip to content

Commit

Permalink
keep PURE comments when building cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Feb 23, 2024
1 parent 6d573c5 commit 45fc3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import cleanup from "rollup-plugin-cleanup";
const entryPoints = require("./entryPoints");
const distDir = "./dist";

const removeComments = cleanup({});
const removeComments = cleanup({ comments: ["some", /#__PURE__/] });

function isExternal(id, parentId, entryPointsAreExternal = true) {
let posixId = toPosixPath(id);
Expand Down

0 comments on commit 45fc3b3

Please sign in to comment.