@discord/metro-intl-transformer 0.10.0-rc.4 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +4 -1
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -16,8 +16,9 @@ const debug = require('debug')('intl:metro-intl-transformer');
16
16
  * getPrelude: () => string
17
17
  * getTranslationAssetExtension: () => string,
18
18
  * getTranslationImport: (importPath: string) => string,
19
- * format: IntlCompiledMessageFormat,
19
+ * format?: IntlCompiledMessageFormat,
20
20
  * bundleSecrets?: boolean,
21
+ * preGenerateBinds?: boolean,
21
22
  * }} options
22
23
  * @returns {string | Buffer}
23
24
  */
@@ -29,6 +30,7 @@ function transformToString({
29
30
  getTranslationImport,
30
31
  format = IntlCompiledMessageFormat.KeylessJson,
31
32
  bundleSecrets = false,
33
+ preGenerateBinds = true,
32
34
  }) {
33
35
  if (isMessageDefinitionsFile(filename)) {
34
36
  debug(`[${filename}] Processing as a definitions file`);
@@ -54,6 +56,7 @@ function transformToString({
54
56
  getTranslationImport,
55
57
  getPrelude,
56
58
  debug: process.env.NODE_ENV === 'development',
59
+ preGenerateBinds,
57
60
  }).getOutput();
58
61
  } else if (isMessageTranslationsFile(filename)) {
59
62
  debug(`[${filename}] Processing as a translations file`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@discord/metro-intl-transformer",
3
- "version": "0.10.0-rc.4",
3
+ "version": "0.10.2",
4
4
  "license": "MIT",
5
5
  "description": "Metro/Babel transformer plugin for compiling, bundling, and minifying intl message definitions and usages using intl-message-database.",
6
6
  "exports": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "dependencies": {
11
11
  "debug": "^4.3.6",
12
- "@discord/babel-plugin-transform-discord-intl": "0.10.0-rc.4",
13
- "@discord/intl-loader-core": "0.10.0-rc.4"
12
+ "@discord/babel-plugin-transform-discord-intl": "0.10.2",
13
+ "@discord/intl-loader-core": "0.10.2"
14
14
  },
15
15
  "devDependencies": {
16
16
  "@types/debug": "^4.1.12"