Skip to content

[babel 8] Remove uglify target support in preset-env#12594

Merged
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:breaking/remove-uglify-target
Jan 8, 2021
Merged

[babel 8] Remove uglify target support in preset-env#12594
nicolo-ribaudo merged 1 commit into
babel:mainfrom
nicolo-ribaudo:breaking/remove-uglify-target

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented Jan 7, 2021

Copy link
Copy Markdown
Member
Q                       A
Patch: Bug Fix?
Major: Breaking Change? Yes
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link babel/website#2765
Any Dependency Changes?
License MIT

backport 4a54f68 (#10895)

@babel-bot

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/36922/

@codesandbox-ci

codesandbox-ci Bot commented Jan 7, 2021

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3774fb2:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

delete optionsTargets.uglify;
if (!process.env.BABEL_8_BREAKING) {
// eslint-disable-next-line no-var
var hasUglifyTarget = false;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

NOTE: I'm using var because I'm relying on function-level hoisting here.

@nicolo-ribaudo
nicolo-ribaudo merged commit 606c91c into babel:main Jan 8, 2021
@nicolo-ribaudo
nicolo-ribaudo deleted the breaking/remove-uglify-target branch January 8, 2021 16:58
@github-actions github-actions Bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Apr 10, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 10, 2021
@nicolo-ribaudo nicolo-ribaudo added babel 8 PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release and removed babel-8-dev → main babel 8 labels Aug 8, 2023
@JLHwung JLHwung added this to the v8.0.0 milestone Aug 9, 2023
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 pkg: preset-env PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants