Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

[BUG] Debugging experience is very poor #44

@resynth1943

Description

@resynth1943

Describe the bug

When Rollup encounters a runtime error, it leaves you with very little to go on -- aside from a stack trace, containing mangled function names and hard-to-reach line numbers.

This doesn't really help:

[resynth@synthcave synth-di]$ time deno run --unstable --allow-read --allow-write --allow-env --allow-net https://deno.land/x/denopack@0.10.0/cli.ts --config ./build/base.config.ts
error: Uncaught (in promise) TypeError: Cannot read property 'split' of undefined
    at Ve (https://unpkg.com/rollup@2.26.11/dist/es/rollup.browser.js:11:31514)
    at Ra (https://unpkg.com/rollup@2.26.11/dist/es/rollup.browser.js:11:318386)
    at async Ua.loadEntryModule (https://unpkg.com/rollup@2.26.11/dist/es/rollup.browser.js:11:327081)
    at async Promise.all (index 0)

To Reproduce
Steps to reproduce the behavior:

  1. Encounter a runtime error in Rollup
  2. See error

Expected behavior

You get an un-minifed error.
The Rollup module you're importing does not come with a source map, btw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions