Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add source map support for stack traces #459

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion lib/graph-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ function node (state, createEdge) {
babelrc: true,
presets: babelPresets
})
b.transform(brfs, { global: true })
b.transform(tfilter(brfs, { exclude: /source-map-support/ }), {
global: true
})
b.transform(yoyoify, { global: true })

if (!fullPaths) b.plugin(cssExtract, { out: bundleStyles })
Expand Down Expand Up @@ -109,6 +111,7 @@ function node (state, createEdge) {
NODE_ENV: 'development'
}, process.env)
b.transform(envify(env), { global: true })
b.add(require.resolve('source-map-support/register'))
}

bundleScripts()
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"send": "^0.16.1",
"server-router": "^6.0.0",
"sheetify": "^7.1.0",
"source-map-support": "^0.5.4",
"split-require": "^3.0.1",
"split2": "^2.2.0",
"strip-ansi": "^4.0.0",
Expand Down