Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
  • Loading branch information
SimenB and jridgewell authored Mar 3, 2024
1 parent e8cc113 commit 12f54ef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e2e/coverage-handlebars/transform-handlebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

const {build} = require('@jridgewell/build-mapping');
const {encodedMap, AnyMap} = require('@jridgewell/trace-mapping');
const {build, normalize} = require('@jridgewell/build-mapping');
const Handlebars = require('handlebars/dist/cjs/handlebars.js');
const dedent = require('string-dedent');

Expand All @@ -16,5 +15,5 @@ exports.process = (code, filename) => {
const Handlebars = require("handlebars/dist/cjs/handlebars.runtime.js");
module.exports = Handlebars.template(${pc});
`;
return {code: out.code, map: encodedMap(new AnyMap(out.map))};
return normalize(out);
};

0 comments on commit 12f54ef

Please sign in to comment.