Skip to content

Commit

Permalink
fix(ssr): check js assets more accurate in ssr webpack plugin (vuejs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
clarkdo authored and aJean committed Aug 19, 2020
1 parent ab7ea79 commit fc40c34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/webpack-plugin/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class VueSSRServerPlugin {
}

stats.assets.forEach(asset => {
if (asset.name.match(/\.js$/)) {
if (isJS(asset.name)) {
bundle.files[asset.name] = compilation.assets[asset.name].source()
} else if (asset.name.match(/\.js\.map$/)) {
bundle.maps[asset.name.replace(/\.map$/, '')] = JSON.parse(compilation.assets[asset.name].source())
Expand Down

0 comments on commit fc40c34

Please sign in to comment.