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

Globally shorten export names #8440

Open
mischnic opened this issue Sep 3, 2022 · 0 comments
Open

Globally shorten export names #8440

mischnic opened this issue Sep 3, 2022 · 0 comments

Comments

@mischnic
Copy link
Member

mischnic commented Sep 3, 2022

🙋 feature request

Globally rename export names so that $2af3.SomeLongExportName can be minified better

Looks like Webpack does this:

const SomeListener = () => {
  const [has, set] = Object(react__WEBPACK_CONCATENATED_MODULE__["useState"])(false);
  const b = Object((__webpack_require__("9tWZ"))["a" /* useFoo */])();
  const a = Object((__webpack_require__("MZOi"))["c" /* useBar */])();
  const interval = Object(react__WEBPACK_CONCATENATED_MODULE__["useRef"])(null);
  const c = Object((__webpack_require__("rZ/p"))["a" /* useThing */])();
  return null;
}  

🔦 Context

Prevent long member access names and string literals (for $parcel$exports) which can't be minified.

@mischnic mischnic changed the title Globally rename export names Globally shorten export names Sep 3, 2022
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

1 participant