File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { validate } from 'schema-utils';
2
2
import mime from 'mime-types' ;
3
3
4
4
import middleware from './middleware' ;
5
+ import getFilenameFromUrl from './utils/getFilenameFromUrl' ;
5
6
import setupHooks from './utils/setupHooks' ;
6
7
import setupWriteToDisk from './utils/setupWriteToDisk' ;
7
8
import setupOutputFileSystem from './utils/setupOutputFileSystem' ;
@@ -79,15 +80,20 @@ export default function wdm(compiler, options = {}) {
79
80
instance . waitUntilValid = ( callback = noop ) => {
80
81
ready ( context , callback ) ;
81
82
} ;
83
+
82
84
instance . invalidate = ( callback = noop ) => {
83
85
ready ( context , callback ) ;
84
86
85
87
context . watching . invalidate ( ) ;
86
88
} ;
89
+
87
90
instance . close = ( callback = noop ) => {
88
91
context . watching . close ( callback ) ;
89
92
} ;
93
+
90
94
instance . context = context ;
91
95
96
+ instance . getFilenameFromUrl = getFilenameFromUrl ;
97
+
92
98
return instance ;
93
99
}
You can’t perform that action at this time.
0 commit comments