Skip to content

Split export extensions into 2#6080

Merged
hzoo merged 3 commits intobabel:7.0from
echo304:split_export_extension
Aug 19, 2017
Merged

Split export extensions into 2#6080
hzoo merged 3 commits intobabel:7.0from
echo304:split_export_extension

Conversation

@echo304
Copy link
Copy Markdown
Contributor

@echo304 echo304 commented Aug 9, 2017

Q A
Patch: Bug Fix? no
Major: Breaking Change? yes
Minor: New Feature? no
Deprecations? no
Spec Compliancy? no
Tests Added/Pass? no
Fixed Tickets Fixes #6075
License MIT
Doc PR
Dependency Changes

#6075
Split babel-plugin-transform-export-extensions into two while keeping babel-plugin-syntax-export-extensions

  • babel-plugin-transform-export-default
  • babel-plugin-transform-export-namespace

@echo304 echo304 force-pushed the split_export_extension branch from 09c4ee0 to 8a8e356 Compare August 10, 2017 02:41
@echo304 echo304 changed the title [WIP] split export extensions into 2 Split export extensions into 2 Aug 10, 2017
@hzoo hzoo added Priority: High PR: Spec Compliance 👓 A type of pull request used for our changelog categories labels Aug 10, 2017
@hzoo
Copy link
Copy Markdown
Member

hzoo commented Aug 10, 2017

while keeping babel-plugin-syntax-export-extensions

Actually thats a good point, we may want to figure that out too (in a later pr/change) - should be split?

@hzoo
Copy link
Copy Markdown
Member

hzoo commented Aug 10, 2017

Sorry will need to do a rebase/fix conflicts since we modified class properties in #6076

@echo304 echo304 force-pushed the split_export_extension branch from 61225ee to fadb46c Compare August 10, 2017 23:44
@echo304
Copy link
Copy Markdown
Contributor Author

echo304 commented Aug 11, 2017

rebased and fixed conflicts!

Copy link
Copy Markdown
Member

@xtuc xtuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @echo304 👍

This is a breaking for people relying directly on the old plugin.

# babel-plugin-transform-export-default

> Compile additional export-from statements to ES2015
> Compile additional export-default-from statements to ES2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can probably drop the "additional" bit?

"babel-plugin-transform-class-properties": "7.0.0-alpha.19",
"babel-plugin-transform-function-sent": "7.0.0-alpha.19",
"babel-plugin-transform-numeric-separator": "7.0.0-alpha.19",
"babel-plugin-transform-export-namespace": "7.0.0-alpha.19",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: alpha sort this

Copy link
Copy Markdown
Member

@existentialism existentialism left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two super small nits, but 👍

@hzoo
Copy link
Copy Markdown
Member

hzoo commented Aug 12, 2017

If you want we could make the old name use the 2 new plugins and deprecate it to say you should use the new one but dono if we want to do that (that only is a thing if they are using the actual name vs the preset)

@echo304 echo304 force-pushed the split_export_extension branch from 6da3317 to 14df0b5 Compare August 12, 2017 05:25
@echo304
Copy link
Copy Markdown
Contributor Author

echo304 commented Aug 12, 2017

@hzoo Let me clarify a little bit. So what you've suggested is that we'd better remain old plugin named babal-plugin-transform-export-extensions which refer to 2 new plugins(export-namespace and export-default) to support backward compatibility. Am I right?

@echo304 echo304 force-pushed the split_export_extension branch from 14df0b5 to 6f7a5ec Compare August 14, 2017 23:51
@hzoo hzoo mentioned this pull request Aug 15, 2017
@hzoo hzoo requested review from benjamn and jdalton August 16, 2017 18:56
@hzoo hzoo merged commit c6a094a into babel:7.0 Aug 19, 2017
@hzoo
Copy link
Copy Markdown
Member

hzoo commented Aug 19, 2017

Thanks @echo304, this is great!

Yeah I was thinking we the old plugin would just include both but we would deprecate it (we don't have to do this). Or we just make the new plugin error and say you have to include either of the new plugins.

@babel-bot babel-bot mentioned this pull request Nov 1, 2017
4 tasks
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Spec Compliance 👓 A type of pull request used for our changelog categories Priority: High

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants