-
Notifications
You must be signed in to change notification settings - Fork 522
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
Terser sourcemap support #1195
Terser sourcemap support #1195
Conversation
4592fbe
to
5f2aa72
Compare
@@ -40,7 +40,7 @@ Can be a .js file, a rule producing .js files as its default output, or a rule p | |||
|
|||
Note that you can pass multiple files to terser, which it will bundle together. | |||
If you want to do this, you can pass a filegroup here.""", | |||
allow_files = [".js"], | |||
allow_files = True, |
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.
why not continue to constrain it? do we no longer have a list of file extensions that should be legal?
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 could be constrained to .js
and .mjs
and .map
I suppose and that would be fine. Should I change it to that?
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.
I'll change it to that
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.
🌮
def _filter_js(files): | ||
return [f for f in files if f.is_directory or f.extension == "js" or f.extension == "mjs"] | ||
|
||
def _filter_sourcemap(files): |
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.
nit: I don't feel like this function is carrying its weight, simple enough list comprehension to inline?
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.
valid point 🌮
fbb0b53
to
43bb384
Compare
43bb384
to
5dcfff5
Compare
No description provided.