LearnNewsExamplesServices
Frontmatter
id2862
titlere-evaluate the default export syntax
stateClosed
labels
enhancement
assignees[]
createdAtJan 31, 2022, 11:50 PM
updatedAtFeb 1, 2022, 9:17 PM
githubUrlhttps://github.com/neomjs/neo/issues/2862
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtFeb 1, 2022, 9:17 PM

re-evaluate the default export syntax

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jan 31, 2022, 11:50 PM

so far i am using the format: export {MainContainer as default};

we could probably shorten it to: export default MainContainer;

i can no longer remember why i picked the named syntax, it might have been because of the compatibility table: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/export

will take a look into this shortly.

tobiu added the enhancement label on Jan 31, 2022, 11:50 PM
tobiu referenced in commit 545227b - "re-evaluate the default export syntax #2862" on Feb 1, 2022, 8:51 PM
tobiu referenced in commit 4a5b3e7 - "re-evaluate the default export syntax #2862" on Feb 1, 2022, 9:15 PM
tobiu closed this issue on Feb 1, 2022, 9:17 PM