From c2b8389ae6b325392f9320d2ecefd2b08b95d23b Mon Sep 17 00:00:00 2001 From: Max Schwenk Date: Sun, 27 Nov 2022 00:04:04 -0800 Subject: [PATCH] docs: fix sourcemap support installation instructions (#677) --- 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)