You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please only file bugs/feature requests for rollup-plugin-closure-compiler here.
What's the issue?
Briefly describe the bug/feature request.
When Computed property names contain invalid javascript identifiers, like '#', '!',
acron parser fails because of forgetting to preserve quotation marks.
How do we reproduce the issue?
We'll likely need to know:
Your Rollup configuration.
the test fixtures:
mixed-keys.test.js
console.log({['foo#']:'value',});
Error logs from your console when invoking Rollup with this plugin present.
If this is a feature request you can use this section to point to a prototype/mockup that will help us understand the request.
Additional context
This is becauseLiteralComputedKeys transformer use property.key.value, which strip off quotation marks.
Could we use property.key.raw instead when present?
The text was updated successfully, but these errors were encountered:
icy0307
pushed a commit
to icy0307/rollup-plugin-closure-compiler
that referenced
this issue
Apr 4, 2023
Please only file bugs/feature requests for rollup-plugin-closure-compiler here.
What's the issue?
Briefly describe the bug/feature request.
When Computed property names contain invalid javascript identifiers, like '#', '!',
acron parser fails because of forgetting to preserve quotation marks.
How do we reproduce the issue?
We'll likely need to know:
the test fixtures:
mixed-keys.test.js
If this is a feature request you can use this section to point to a prototype/mockup that will help us understand the request.
Additional context
This is because
LiteralComputedKeys
transformer useproperty.key.value
, which strip off quotation marks.Could we use
property.key.raw
instead when present?The text was updated successfully, but these errors were encountered: