Commit graph

8 commits

Author SHA1 Message Date
Daniel Uber
69a03c8b07
Add explicit loose configuration for babel plugins (#14048)
* Add explicit loose configuration for babel private-property plugin

Squelch this warning that happens a few dozen times during CI by
following the instructions:

Though the "loose" option was set to "false" in your @babel/preset-env config, it will not be used for @babel/plugin-proposal-private-property-in-object since the "loose" mode option was set to "true" for @babel/plugin-proposal-private-methods.

The "loose" option must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled): you can silence this warning by explicitly adding

	["@babel/plugin-proposal-private-property-in-object", { "loose": true }]

to the "plugins" section of your Babel config.

* Use spaces instead of tabs

This won't affect the test.

* Make all the other "implied loose" options loose, too.

This now squelches the warnings, and webpacker can compile without failing.

* Collect common option "loose: true" to preset env

Rather than 3 overrides to bring these inline, move to the shared options.

* Revert "Collect common option "loose: true" to preset env"

This reverts commit ca3d09ba6a47e03dbfb5f6108fcbc7f19b5a457b.
2021-06-23 13:57:51 -05:00
Rafi
0d2b4c515d
Replace globals with node env (#10767) 2020-10-14 17:05:38 -04:00
Nick Taylor
1d5163131b
Revert "Added pragmaFrag so terse Fragment syntax,<></>, can be used in Preact. (#9051)" (#10050) 2020-08-28 10:17:37 -04:00
Nick Taylor
9fc79cf034
Added pragmaFrag so terse Fragment syntax,<></>, can be used in Preact. (#9051) 2020-07-01 09:19:33 -04:00
rhymes
1112cbf316
[deploy] Update webpacker configuration (#8004) 2020-05-25 12:03:18 -04:00
Nick Taylor
a654d25009
Added bugFixes option to @babel/preset-env. (#6909) 2020-03-28 19:35:37 +01:00
Nick Taylor
b833c6c667
Upgraded to jest 25.2.0. (#6849) 2020-03-25 17:26:28 -04:00
Nick Taylor
ccf7e6e5bf
Upgrade to webpacker/webpack 4 and Babel 7 (#6664)
Upgraded to webpacker 4/webpack 4 and Babel 7
2020-03-17 08:20:36 -04:00