-
Notifications
You must be signed in to change notification settings - Fork 147
node gets stuck running files containing '# sourceMappingURL' with --inspect #207
Comments
Hi @Mensu! Can you please create a simple repro repo. I haven't been able to reproduce this in the past so without a repro repo this will end up getting closed as Update: I can't repro on master with the example provided. |
@jdalton Sorry for my late reply. Here's the repro repo: Mensu/std-esm-repro-issue-207 I now found that it is NOT related to flag I also tried requiring from master by the following steps, and node still got stuck...
I would be glad if you could check it out again with the repro repo. Thanks in advance! |
Thanks @Mensu! I can repro this. Update: I fixed the issue locally, will create a unit test and push in a bit. |
|
Hi, I just found that the node process would get stuck when running the following
index.js
file withnode --inspect -r @std/esm index.js
, which may somehow be related to #178 .@std/esm
version: 0.18.0node
version: 9.2 on macOS, 9.2 on Ubuntu 16.04 and 9.3 on Ubuntu 16.04expected behavior:
node
exits after printing# sourceMappingURL
andwork
actual behavior:
node
gets stuckI've tried some modifications, which may be helpful for debugging:
--inspect
flag:node -r @std/esm index.js
works@std/esm
inpackage.json
:"sourceMap": false
works with--inspect
flagconsole.log('# sourceMappingURL')// console.log('# sourceMappingURL')
does not workconsole.log('first line')
above the first line: node process gets stuck without even printingfirst line
Originally I found this when importing
pug
, which eventually requires[email protected]/lib/imports/inliner
containing a regexp/\/\*# sourceMappingURL=(\S+) \*\//
Are there anything I am missing or doing wrong, or is this just a bug? Thanks in advance!
The text was updated successfully, but these errors were encountered: