Skip to content

Commit a4781c8

Browse files
Also fix Node build
1 parent 0044c22 commit a4781c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/firestore/rollup.config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,13 @@ const nodeBuildPlugins = [
205205
typescript,
206206
cacheRoot: `./.cache/node/`
207207
}),
208+
{
209+
transform(code) {
210+
// Allow Rollup to drop unused classes.
211+
// See https://github.com/rollup/rollup/issues/2807
212+
return code.replace(/\/\*\* @class \*\//g, "\/*@__PURE__*\/");
213+
}
214+
},
208215
json(),
209216
// Needed as we also use the *.proto files
210217
copy({

0 commit comments

Comments
 (0)