Skip to content

Commit 83b3890

Browse files
committed
fix
1 parent e72bc89 commit 83b3890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dev-packages/rollup-utils/plugins/npmPlugins.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function makeProductionReplacePlugin() {
130130

131131
function stripDevBlocks(code) {
132132
if (!code) return null;
133-
if (!pattern.test(code)) return null;
133+
if (!code.includes('rollup-include-development-only')) return null;
134134
const replaced = code.replace(pattern, '');
135135
return { code: replaced, map: null };
136136
}

0 commit comments

Comments
 (0)