fluent-transpiler 0.2.0 → 0.2.1

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 +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -202,7 +202,7 @@ export const compile = (src, opts) => {
202
202
  },
203
203
  // Element
204
204
  TextElement: (data) => {
205
- return data.value
205
+ return data.value.replaceAll('`', '\\`') // escape string literal
206
206
  },
207
207
  Placeable: (data, parent) => {
208
208
  return `${options.useIsolating ? '\u2068' : ''}\${${compileType(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-transpiler",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Transpile Fluent (ftl) files into optimized, tree-shakable, JavaScript EcmaScript Modules (esm).",
5
5
  "main": "index.js",
6
6
  "type": "module",