@vue/compiler-sfc 2.7.9 → 2.7.10

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.
@@ -741,10 +741,10 @@ function parseComponent(source, options = {}) {
741
741
  currentBlock.end = start;
742
742
  let text = source.slice(currentBlock.start, currentBlock.end);
743
743
  if (options.deindent === true ||
744
- // by default, deindent unless it's script with default lang or ts
744
+ // by default, deindent unless it's script with default lang or (j/t)sx?
745
745
  (options.deindent !== false &&
746
746
  !(currentBlock.type === 'script' &&
747
- (!currentBlock.lang || currentBlock.lang === 'ts')))) {
747
+ (!currentBlock.lang || /^(j|t)sx?$/.test(currentBlock.lang))))) {
748
748
  text = deIndent(text);
749
749
  }
750
750
  // pad content so that linters and pre-processors can output correct
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "2.7.9",
3
+ "version": "2.7.10",
4
4
  "description": "compiler-sfc for Vue 2",
5
5
  "main": "dist/compiler-sfc.js",
6
6
  "types": "dist/compiler-sfc.d.ts",