File tree 3 files changed +67
-0
lines changed
3 files changed +67
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { Plugin } from 'webpack'
2
+ import {
3
+ CompilerOptions ,
4
+ parseComponent ,
5
+ compile ,
6
+ compileToFunctions ,
7
+ ssrCompile ,
8
+ ssrCompileToFunctions ,
9
+ generateCodeFrame
10
+ } from 'vue-template-compiler'
2
11
3
12
declare namespace VueLoader {
4
13
class VueLoaderPlugin extends Plugin { }
14
+
15
+ interface VueLoaderTemplateCompiler {
16
+ parseComponent ?: typeof parseComponent
17
+ compile ?: typeof compile
18
+ compileToFunctions ?: typeof compileToFunctions
19
+ ssrCompile ?: typeof ssrCompile
20
+ ssrCompileToFunctions ?: typeof ssrCompileToFunctions
21
+ generateCodeFrame ?: typeof generateCodeFrame
22
+ }
23
+
24
+ interface VueLoaderOptions {
25
+ transformAssetUrls ?: { [ tag : string ] : string | Array < string > }
26
+ compiler ?: VueLoaderTemplateCompiler
27
+ compilerOptions ?: CompilerOptions
28
+ transpileOptions ?: Object
29
+ optimizeSSR ?: boolean
30
+ hotReload ?: boolean
31
+ productionMode ?: boolean
32
+ shadowMode ?: boolean
33
+ cacheDirectory ?: string
34
+ cacheIdentifier ?: string
35
+ prettify ?: boolean
36
+ exposeFilename ?: boolean
37
+ }
5
38
}
6
39
7
40
export = VueLoader
Original file line number Diff line number Diff line change 44
44
"vue-style-loader" : " ^4.1.0"
45
45
},
46
46
"devDependencies" : {
47
+ "@types/webpack" : " ^4.4.27" ,
47
48
"babel-core" : " ^6.26.0" ,
48
49
"babel-loader" : " ^7.1.4" ,
49
50
"babel-preset-env" : " ^1.6.1" ,
Original file line number Diff line number Diff line change 777
777
" @shellscape/koa-send" " ^4.1.0"
778
778
debug "^2.6.8"
779
779
780
+ " @types/anymatch@* " :
781
+ version "1.3.1"
782
+ resolved "https://registry.yarnpkg.com/@types/anymatch/-/anymatch-1.3.1.tgz#336badc1beecb9dacc38bea2cf32adf627a8421a"
783
+ integrity sha512-/+CRPXpBDpo2RK9C68N3b2cOvO0Cf5B9aPijHsoDQTHivnGSObdOF2BRQOYjojWTDy6nQvMjmqRXIxH55VjxxA==
784
+
780
785
" @types/babel-types@*" , "@types/babel-types@^7.0.0":
781
786
version "7.0.4"
782
787
resolved "https://registry.yarnpkg.com/@types/babel-types/-/babel-types-7.0.4.tgz#bfd5b0d0d1ba13e351dff65b6e52783b816826c8"
789
794
dependencies :
790
795
" @types/babel-types" " *"
791
796
797
+ " @types/node@* " :
798
+ version "11.13.7"
799
+ resolved "https://registry.yarnpkg.com/@types/node/-/node-11.13.7.tgz#85dbb71c510442d00c0631f99dae957ce44fd104"
800
+ integrity sha512-suFHr6hcA9mp8vFrZTgrmqW2ZU3mbWsryQtQlY/QvwTISCw7nw/j+bCQPPohqmskhmqa5wLNuMHTTsc+xf1MQg==
801
+
802
+ " @types/tapable@* " :
803
+ version "1.0.4"
804
+ resolved "https://registry.yarnpkg.com/@types/tapable/-/tapable-1.0.4.tgz#b4ffc7dc97b498c969b360a41eee247f82616370"
805
+ integrity sha512-78AdXtlhpCHT0K3EytMpn4JNxaf5tbqbLcbIRoQIHzpTIyjpxLQKRoxU55ujBXAtg3Nl2h/XWvfDa9dsMOd0pQ==
806
+
807
+ " @types/uglify-js@* " :
808
+ version "3.0.4"
809
+ resolved "https://registry.yarnpkg.com/@types/uglify-js/-/uglify-js-3.0.4.tgz#96beae23df6f561862a830b4288a49e86baac082"
810
+ integrity sha512-SudIN9TRJ+v8g5pTG8RRCqfqTMNqgWCKKd3vtynhGzkIIjxaicNAMuY5TRadJ6tzDu3Dotf3ngaMILtmOdmWEQ==
811
+ dependencies :
812
+ source-map "^0.6.1"
813
+
814
+ " @types/webpack@^4.4.27 " :
815
+ version "4.4.27"
816
+ resolved "https://registry.yarnpkg.com/@types/webpack/-/webpack-4.4.27.tgz#8bb9429185977a6b3b9e6e6132f561066aa7e7c2"
817
+ integrity sha512-xSll/4UXnLQ0xjdAoTRIFxA6NPC2abJ8nHxRH6SqTymHrfGCc8er7qH0npwCP8q3VFoJh2Hjz1wH8oTjwx9/jQ==
818
+ dependencies :
819
+ " @types/anymatch" " *"
820
+ " @types/node" " *"
821
+ " @types/tapable" " *"
822
+ " @types/uglify-js" " *"
823
+ source-map "^0.6.0"
824
+
792
825
793
826
version "3.0.0-beta.11"
794
827
resolved "https://registry.yarnpkg.com/@vue/babel-preset-app/-/babel-preset-app-3.0.0-beta.11.tgz#c8b889aa73464050f9cd3f9dc621951d85c24508"
You can’t perform that action at this time.
0 commit comments