Skip to content

Commit f0a94f8

Browse files
committed
feat(): add sourcemap
1 parent 60f4baf commit f0a94f8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export default function (opts: NodePolyfillsOptions = {}) {
88
const injectPlugin = inject({
99
include: opts.include,
1010
exclude: opts.exclude,
11+
sourceMap: opts.sourceMap,
1112
modules: {
1213
'process': 'process',
1314
'Buffer': ['buffer', 'Buffer'],

src/modules.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ const EMPTY_PATH = require.resolve('../polyfills/empty.js');
33
export interface NodePolyfillsOptions {
44
fs?: boolean;
55
crypto?: boolean;
6+
sourceMap?: boolean;
67
baseDir?: string;
78
include?: Array<string | RegExp> | string | RegExp | null;
89
exclude?: Array<string | RegExp> | string | RegExp | null;

0 commit comments

Comments
 (0)