diff --git a/packages/babel-core/src/transformation/file/file.js b/packages/babel-core/src/transformation/file/file.js index 2c026fd2c5..f9fa1f2f5d 100644 --- a/packages/babel-core/src/transformation/file/file.js +++ b/packages/babel-core/src/transformation/file/file.js @@ -212,7 +212,9 @@ export default class File { column: loc.column + 1, }, }, - this.opts, + { + highlightCode: this.opts.highlightCode, + }, ); }