We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f4baf commit f0a94f8Copy full SHA for f0a94f8
src/index.ts
@@ -8,6 +8,7 @@ export default function (opts: NodePolyfillsOptions = {}) {
8
const injectPlugin = inject({
9
include: opts.include,
10
exclude: opts.exclude,
11
+ sourceMap: opts.sourceMap,
12
modules: {
13
'process': 'process',
14
'Buffer': ['buffer', 'Buffer'],
src/modules.ts
@@ -3,6 +3,7 @@ const EMPTY_PATH = require.resolve('../polyfills/empty.js');
3
export interface NodePolyfillsOptions {
4
fs?: boolean;
5
crypto?: boolean;
6
+ sourceMap?: boolean;
7
baseDir?: string;
include?: Array<string | RegExp> | string | RegExp | null;
exclude?: Array<string | RegExp> | string | RegExp | null;
0 commit comments