Skip to content

Commit 64d17e2

Browse files
Ernest NowackiErnest Nowacki
authored andcommitted
Changes default sourceType of js extraction from 'script' to 'module'. It fixes issue with parsing ES6 code.
1 parent 76115a2 commit 64d17e2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/extract.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ var Extractor = (function () {
172172
attachComment: true,
173173
loc: true,
174174
ecmaVersion: 6,
175+
sourceType: 'module',
175176
ecmaFeatures: {
176177
jsx: true,
177178
experimentalObjectRestSpread: true,

0 commit comments

Comments
 (0)