Skip to content

Commit 621c907

Browse files
committed
Tell Rollup to tree-shake translations
1 parent 53c9803 commit 621c907

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

create-i18n/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ export function createI18n(locale, opts) {
4343
}
4444
}
4545

46-
let define = (componentName, base) => {
46+
/* @__NO_SIDE_EFFECTS__ */
47+
function define(componentName, base) {
4748
let transforms = {}
4849
let baseTranslation = {}
4950
for (let i in base) {

0 commit comments

Comments
 (0)