16 lines
379 B
JavaScript
16 lines
379 B
JavaScript
// Simple test to verify source maps are working
|
|
import "source-map-support/register";
|
|
|
|
console.log("Testing source map support...");
|
|
|
|
function testError() {
|
|
// Force an error on a specific line
|
|
const obj = null;
|
|
console.log(obj.someProperty); // This will throw an error on this line
|
|
}
|
|
|
|
try {
|
|
testError();
|
|
} catch (error) {
|
|
console.log("Error caught:", error.stack);
|
|
} |