I have a large project with translation files that add up to around 7,000 lines of English text which means that 46 of the 48 seconds of rebuild (as per below) is all down to the “legacy handler (.i18n.json)”:
Rebuild App..................................................48,159 ms (1)
| └─ bundler.bundle............................................48,159 ms (1)
| ├─ compiler.compile(the app)..............................46,328 ms (1)
| │ └─ compileUnibuild (the app)...........................46,327 ms (4)
| │ ├─ legacy handler (.i18n.json) 45,804 ms (4)
| │ └─ other compileUnibuild (the app) 371 ms
| ├─ bundler.bundle..makeClientTarget........................1,555 ms (2)
| │ └─ Target#make..........................................1,555 ms (2)
| │ ├─ Target#_runCompilerPlugins..........................241 ms (2)
| │ │ └─ plugin templating-compiler.......................166 ms (2)
| │ │ └─ files.readFile 132 ms (56)
| │ ├─ Target#_emitResources.............................1,068 ms (2)
| │ │ └─ PackageSourceBatch.computeJsOutputFilesMap.......971 ms (2)
| │ │ └─ ImportScanner#scanImports for the app.........648 ms (2)
| │ │ ├─ Babel.compile 102 ms (1802)
| │ │ ├─ ImportScanner#resolve 122 ms (13812)
| │ │ └─ other ImportScanner#scanImports for the app 262 ms
| │ └─ Target#minifyJs.....................................114 ms (2)
| │ └─ sha512 106 ms (339)
| └─ bundler writeTargetToPath.................................266 ms (2)
| └─ ClientTarget#write 263 ms (2)
I am using this meteor package:
tap:i18n
I would love my builds to be 2 seconds! Does anyone know how I can stop the i18n rebuild each time and only have it build when I change my language file(s)?