File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,17 @@ type NodeElmCompilerOptions = {
43
43
verbose ?: boolean
44
44
}
45
45
46
- export const plugin = ( opts ?: {
47
- debug ?: boolean
48
- optimize ?: boolean
49
- nodeElmCompilerOptions : NodeElmCompilerOptions
50
- } ) : Plugin => {
46
+ export const plugin = (
47
+ opts : {
48
+ debug ?: boolean
49
+ optimize ?: boolean
50
+ nodeElmCompilerOptions ?: NodeElmCompilerOptions
51
+ } = { } ,
52
+ ) : Plugin => {
51
53
const compilableFiles : Map < string , Set < string > > = new Map ( )
52
- const debug = opts ? .debug
53
- const optimize = opts ? .optimize
54
- const compilerOptionsOverwrite = opts ? .nodeElmCompilerOptions ?? { }
54
+ const debug = opts . debug
55
+ const optimize = opts . optimize
56
+ const compilerOptionsOverwrite = opts . nodeElmCompilerOptions ?? { }
55
57
56
58
return {
57
59
name : 'vite-plugin-elm' ,
You can’t perform that action at this time.
0 commit comments