Skip to content

Commit a84cfd5

Browse files
feat: add way to pass options to unassert
1 parent 04055ba commit a84cfd5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unassert.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export default function unassert(options = {}) {
77
options.exclude
88
);
99

10+
const unassertOptions = options.unassertOptions ?? {};
11+
1012
return {
1113
name: 'unassert',
1214
transform(code, id) {
@@ -19,6 +21,7 @@ export default function unassert(options = {}) {
1921
sourceMap: options.sourcemap !== false ?
2022
{hires: true} :
2123
false,
24+
...unassertOptions
2225
});
2326
},
2427
};

0 commit comments

Comments
 (0)