File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
33const path = require ( 'path' ) ;
4- const pathRegexp = require ( 'path-to-regexp' ) ;
4+ const { pathToRegexp } = require ( 'path-to-regexp' ) ;
55const browserSync = require ( 'browser-sync' ) ;
66const serveStatic = require ( 'serve-static' ) ;
77
@@ -61,9 +61,9 @@ if (devMode) {
6161 . on ( 'unlink' , invokeWatchCallback ) ;
6262}
6363
64- const reComponentPath = pathRegexp ( '/component/:component' ) ;
65- const reDemoComponentPath = pathRegexp ( '/demo/:component' ) ;
66- const reCodePath = pathRegexp ( '/code/:component' ) ;
64+ const reComponentPath = pathToRegexp ( '/component/:component' ) ;
65+ const reDemoComponentPath = pathToRegexp ( '/demo/:component' ) ;
66+ const reCodePath = pathToRegexp ( '/code/:component' ) ;
6767const demoStaticRoute = serveStatic ( 'demo' ) ;
6868
6969function noopRoute ( req , res , next ) {
You can’t perform that action at this time.
0 commit comments