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

Uglifying two babelified files with sourcemasp leads to error #790

Closed
mohsen1 opened this issue Sep 2, 2015 · 1 comment
Closed

Uglifying two babelified files with sourcemasp leads to error #790

mohsen1 opened this issue Sep 2, 2015 · 1 comment

Comments

@mohsen1
Copy link

mohsen1 commented Sep 2, 2015

This bug is a bit complicated to reproduce. In Swagger Editor when I introduced two new component that were using babelify all of the sudden uglified code for vendors started to throw errors.

This happened in swagger-api/swagger-editor@a8eb771 commit.

I was able to fix this by essentially removing the sourcemap from json-schema-view-js bundle.js file by using the minified version. (this commit)

Here is list of facts:

It's not the easiest to reproduce bug but I thought maybe it's going to help to share my experience here.

@mohsen1 mohsen1 changed the title Uglifying two babelified with sourcemasp leads to error Uglifying two babelified files with sourcemasp leads to error Sep 2, 2015
@alexlamsl
Copy link
Collaborator

Closing as duplicate of #145

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants