1

I am using babel-cli to compile my local NPM dependency source code.

package.json:

"main": "lib/index.js",
"scripts": {
    "dev": "babel src --watch -d lib --source-maps inline",
},

The local NPM dependency was referenced by my other application. Now I need npm link to debug local NPM dependency. How can I debug with source-maps?

1 Answer 1

1

You may try source-map-loader with webpack https://github.com/webpack-contrib/source-map-loader

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.