Skip to content

Commit

Permalink
fix(loader): Handle null sourcemaps.
Browse files Browse the repository at this point in the history
Webpack may send `null` as sourcemaps, which is now treated as no sourcmap instead of failing.
  • Loading branch information
kollhof committed Sep 26, 2018
1 parent d29b415 commit 8e6e72f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/code-split.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@ const isHydratable = (hydratablePropPath)=> (
);


const getAst = (source, inputSourceMap)=> (
const getAst = (source, sourceMap)=> (
parse(source, {
sourceType: 'module',
inputSourceMap
inputSourceMap: sourceMap || false
})
);

Expand Down

0 comments on commit 8e6e72f

Please sign in to comment.