Skip to content

Prevent the cache of files using Babel Macros - #5078

Merged
Timer merged 7 commits into
react:nextfrom
Timer:hotfix/no-cache-macros
Sep 25, 2018
Merged

Prevent the cache of files using Babel Macros#5078
Timer merged 7 commits into
react:nextfrom
Timer:hotfix/no-cache-macros

Conversation

@Timer

@TimerTimer commented Sep 24, 2018

Copy link
Copy Markdown
Contributor

We can't cache files using babel macros until babel/babel#8497 is resolved.

Unfortunately we need to use our own loader until babel/babel-loader#687 is merged.

@TimerTimer added this to the 2.0.0 milestone Sep 24, 2018
@TimerTimer changed the title Add new overrides optionPrevent the cache of files using Babel MacrosSep 24, 2018
@TimerTimer closed this Sep 24, 2018
@TimerTimer reopened this Sep 24, 2018
@Timer
Timer requested a review from gaearonSeptember 24, 2018 19:58
@Timer
Timer merged commit 11737bc into react:nextSep 25, 2018
@Timer
Timer deleted the hotfix/no-cache-macros branch September 25, 2018 00:10
caller: {
name: `babel-preset-react-app:${crypto
.randomBytes(32)
.toString('hex')}`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I understand why you're using a random value, but there's no need to append it to the name. You can just make a new property like craInvalidationToken or something on caller.

@TimerTimer mentioned this pull request Sep 27, 2018
zmitry pushed a commit to zmitry/create-react-app that referenced this pull request Sep 30, 2018
* Add new overrides option
* Add file to package.json
* Create our own loader
* Remove overrides
* We have to use a real babel option
* Add comments
@jamesknelsonjamesknelson mentioned this pull request Oct 26, 2018
@locklockBot locked and limited conversation to collaborators Jan 19, 2019
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@Timer@loganfsmyth@iansu@facebook-github-bot