File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ function getMajor() {
63
63
return Number ( svelte . VERSION . split ( '.' ) [ 0 ] ) ;
64
64
}
65
65
66
- const svelte_module_regex = / \. s v e l t e ( \. [ ^ . / \\ ] + ) * \. ( j s | t s ) $ /
66
+ const svelte_module_regex = / \. s v e l t e ( \. [ ^ . / \\ ] + ) * \. ( j s | t s ) $ / ;
67
67
68
68
module . exports = function ( source , map ) {
69
69
this . cacheable ( ) ;
@@ -176,7 +176,7 @@ module.exports = function(source, map) {
176
176
// context when logging to console
177
177
let err_str = err . toString ( ) ;
178
178
if ( getMajor ( ) < 5 || ! err_str . startsWith ( 'CompileError:' ) ) {
179
- err_str = `${ err . name } : ${ err_str } `
179
+ err_str = `${ err . name } : ${ err_str } ` ;
180
180
}
181
181
callback ( new Error ( err_str ) ) ;
182
182
} ) ;
Original file line number Diff line number Diff line change 7
7
"scripts" : {
8
8
"all" : " npm run lint && npm run test" ,
9
9
"test" : " mocha --harmony --full-trace --check-leaks" ,
10
- "lint" : " eslint index.js lib/*.js test/**/*.js"
10
+ "lint" : " eslint index.js lib/*.js test/**/*.js" ,
11
+ "prepublishOnly" : " npm run all"
11
12
},
12
13
"keywords" : [
13
14
" svelte" ,
You can’t perform that action at this time.
0 commit comments