File tree 3 files changed +10
-8
lines changed 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-svg-icon-loader" ,
3
- "version" : " 2.1.0 " ,
3
+ "version" : " 2.1.1 " ,
4
4
"description" : " Turn SVG files into Vuejs Icon Components" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
7
7
"clean" : " rimraf ./lib" ,
8
8
"prebuild" : " yarn run clean" ,
9
9
"build" : " tsc --version && tsc --project ." ,
10
10
"build:watch" : " yarn build --watch" ,
11
- "prepublish" : " yarn build"
11
+ "test" : " true" ,
12
+ "prepare" : " yarn build"
12
13
},
13
14
"repository" : {
14
15
"type" : " git" ,
32
33
},
33
34
"homepage" : " https://github.com/wadetandy/vue-svg-icon-loader/" ,
34
35
"dependencies" : {
36
+ "@types/loader-utils" : " 1.1.3" ,
37
+ "@types/node" : " 8.9" ,
35
38
"loader-utils" : " 1.1.0" ,
36
39
"vue-svg-component-builder" : " 2.0.3"
37
40
},
41
44
},
42
45
"devDependencies" : {
43
46
"@types/chai" : " 4.1.2" ,
44
- "@types/loader-utils" : " 1.1.1" ,
45
47
"@types/mocha" : " 2.2.48" ,
46
- "@types/webpack" : " 3.8.5 " ,
48
+ "@types/webpack" : " 4.4.0 " ,
47
49
"@vue/test-utils" : " 1.0.0-beta.12" ,
48
50
"chai" : " 4.1.2" ,
49
51
"jsdom" : " 11.6.2" ,
55
57
"vue" : " 2.5.16" ,
56
58
"vue-svg-component-runtime" : " 1.0.0" ,
57
59
"vue-template-compiler" : " 2.5.16" ,
58
- "webpack" : " ^3.6.0 "
60
+ "webpack" : " 4.9.1 "
59
61
}
60
62
}
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ interface IOptions {
8
8
}
9
9
10
10
const loader : loader . Loader = function ( contents : string | Buffer ) {
11
- const options : IOptions = getOptions ( this )
11
+ const options : IOptions = getOptions ( this ) || { }
12
12
13
13
if ( typeof contents !== 'string' ) {
14
14
contents = contents . toString ( )
Original file line number Diff line number Diff line change 1
1
{
2
2
"compilerOptions" : {
3
- "target" : " es5 " ,
3
+ "target" : " es6 " ,
4
4
"strict" : true ,
5
5
"lib" : [
6
- " es5 " ,
6
+ " es6 " ,
7
7
" es2015.core" ,
8
8
" dom"
9
9
],
You can’t perform that action at this time.
0 commit comments