From 43a793aca52a279ead05fb7b02dff8d985497108 Mon Sep 17 00:00:00 2001 From: Max Schwenk Date: Wed, 23 Nov 2022 10:50:29 -0500 Subject: [PATCH] Fix sourcemap support installation instructions --- packages/sourcemap-support/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/sourcemap-support/README.md b/packages/sourcemap-support/README.md index ee4449604..9d758e8d4 100644 --- a/packages/sourcemap-support/README.md +++ b/packages/sourcemap-support/README.md @@ -3,6 +3,8 @@ ```ts import { SourcemapMap, installSourceMapSupport } from '@swc-node/sourcemap-support' +installSourceMapSupport() + function transform(sourcecode, filename, options) { const { code, map } = transformSync(sourcecode, filename, options) SourcemapMap.set(filename, map)