Skip to content

Commit aae515c

Browse files
committed
add comment explaining inline esbuild plugin
Signed-off-by: Karthik Ganeshram <[email protected]>
1 parent a4a8a8b commit aae515c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test-app/build.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import fs from 'fs';
66

77
const spinPlugin = await SpinEsbuildPlugin();
88

9+
// plugin to handle vendor files in node_modules that may not be bundled.
10+
// Instead of generating a real source map for these files, it appends a minimal
11+
// inline source map pointing to an empty source. This avoids errors and ensures
12+
// source maps exist even for unbundled vendor code.
913
let SourceMapPlugin = {
1014
name: 'excludeVendorFromSourceMap',
1115
setup(build) {

0 commit comments

Comments
 (0)