mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 22:35:09 +00:00
Ignore source map files in %sapper.scripts%
This commit is contained in:
@@ -193,6 +193,7 @@ function get_route_handler(chunks: Record<string, string>, routes: RouteObject[]
|
|||||||
|
|
||||||
let scripts = []
|
let scripts = []
|
||||||
.concat(chunks.main) // chunks main might be an array. it might not! thanks, webpack
|
.concat(chunks.main) // chunks main might be an array. it might not! thanks, webpack
|
||||||
|
.filter(function (file) { return !file.match(/\.map$/); })
|
||||||
.map(file => `<script src='${req.baseUrl}/client/${file}'></script>`)
|
.map(file => `<script src='${req.baseUrl}/client/${file}'></script>`)
|
||||||
.join('');
|
.join('');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user