Skip to content

Conversation

rosen-vladimirov
Copy link
Contributor

In case the library path is set in webpack.config.js file, the URLs in sourceMaps are generated in a way that is not expected for our parser - currently we expect webpack:///<path>, while it becomes webpack://<library>/<path>.
To handle this, add the correct sourceMapPathOverrides in case the user had not specified it already.

Add unit tests and add as devDependency @types/sinon. However, the project cannot be transpiled with the current TypeScript version (2.6) when this package is installed, so update TypeScript to latest version.
Use proxyquire in the tests to mock the require of the webpack.config.js file.

Fixes #263

In case the `library` path is set in webpack.config.js file, the URLs in sourceMaps are generated in a way that is not expected for our parser - currently we expect `webpack:///<path>`, while it becomes `webpack://<library>/<path>`. To handle this, add the correct sourceMapPathOverrides in case the user had not specified it already. Add unit tests and add as devDependency `@types/sinon`. However, the project cannot be transpiled with the current TypeScript version (2.6) when this package is installed, so update TypeScript to latest version. Use proxyquire in the tests to mock the require of the webpack.config.js file.
@rosen-vladimirov rosen-vladimirov merged commit b4b8f0a into master Sep 9, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/fix-webpack-lib branch September 9, 2019 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants