-
-
Notifications
You must be signed in to change notification settings - Fork 84
chore: remove unused dependency (source-map
)
#48
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
Conversation
|
@diegofaria why? |
it looks like its not being used by the code, or i am too newbie?! x) |
Seems /cc @d3viant0ne |
source-map
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@diegofaria Thx, could you please remove the dependency from package.json
aswell ? 😛
source-map
)source-map
)
I don't really know if it tests without SourcMap depedency will maintain the same purpose. @d3viant0ne @michael-ciniawsky @evilebottnawi |
@diegofaria - You need to sign the CLA before this can be merged. |
I already did it @d3viant0ne :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The with
keyword is absolutely discouraged to use, quoting MDN here for reference
Using with is not recommended, and is forbidden in ECMAScript 5 strict mode. The recommended alternative is to assign the object whose properties you want to access to a temporary variable.
The question is if we still need it or if this is technical dept in the tests aswell (like the left over require
in the loader itself), since the loader works without it, guessing that's likely to be the case :)
I can't for instance see how this is utilized, the expected value, just contains the 'with Sourcemap'
{String}
¯_(ツ)_/¯. It's really weird 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks to me like tech debt but as @michael-ciniawsky said, it's just weird. We should probably ask Tobias just to be sure we aren't missing some sourcemap nuance that isn't apparent here.
@zuohaocheng Do you have any idea why the |
@michael-ciniawsky I'm not sure, but it looks more like a comment for me, as these are not real JavaScript file: What is done in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's great to remove unused dependencies. Meanwhile I'm not sure whether it's a good practice to remove those with
s, because those files do not have to valid JavaScript file.
What do you guys think it's left here? |
@diegofaria Please kindly correct me if it's not the case. As mentioned in earlier comment, I think it would be nice to leave those Removing unused dependency looks perfect forme. |
@zuohaocheng can you check if now it is correct? |
What's the status? |
/cc @diegofaria need accept CLA and rebase |
No description provided.