Skip to content
This repository has been archived by the owner on Aug 11, 2019. It is now read-only.

Commit

Permalink
strip byte order mark (fixes #22)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 5, 2017
1 parent fd18168 commit 64706eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tasks/compile/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ function compileFile ( input, output, options ) {
const { sourceMap } = options;
const inline = sourceMap === "inline";

const source = fs.readFileSync( input, 'utf-8' );
let source = fs.readFileSync( input, 'utf-8' );
if ( source[0] === 0xFEFF ) source = source.slice( 1 );

let compiled;

Expand Down

0 comments on commit 64706eb

Please sign in to comment.