diff --git a/src/middleware.ts b/src/middleware.ts index 63ad84a..3fc9da0 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -193,6 +193,7 @@ function get_route_handler(chunks: Record, routes: RouteObject[] let scripts = [] .concat(chunks.main) // chunks main might be an array. it might not! thanks, webpack + .filter(function (file) { return !file.match(/\.map$/); }) .map(file => ``) .join(''); @@ -368,4 +369,4 @@ function try_serialize(data: any) { } catch (err) { return null; } -} \ No newline at end of file +}