@parcel/codeframe 2.0.0-rc.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/codeframe.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parcel/codeframe",
3
- "version": "2.0.0-rc.0",
3
+ "version": "2.1.1",
4
4
  "description": "Blazing fast, zero configuration web application bundler",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
@@ -28,5 +28,5 @@
28
28
  "devDependencies": {
29
29
  "strip-ansi": "^6.0.0"
30
30
  },
31
- "gitHead": "8fc248f1f8eeb4428f7abd768bd23111451b1903"
31
+ "gitHead": "f53ffe772a8259d94ca2937d02fde149454112f3"
32
32
  }
package/src/codeframe.js CHANGED
@@ -121,9 +121,8 @@ export default function codeFrame(
121
121
 
122
122
  // Split input into lines and highlight syntax
123
123
  let lines = code.split(NEWLINE);
124
- let syntaxHighlightedLines = (opts.syntaxHighlighting
125
- ? highlightSyntax(code, opts.language)
126
- : code
124
+ let syntaxHighlightedLines = (
125
+ opts.syntaxHighlighting ? highlightSyntax(code, opts.language) : code
127
126
  )
128
127
  .replace(TAB_REPLACE_REGEX, TAB_REPLACEMENT)
129
128
  .split(NEWLINE);