@xh/hoist-dev-utils 6.1.0 → 6.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -29,7 +29,7 @@ const _ = require('lodash'),
29
29
  // this script locally to debug via `yarn link`.
30
30
  let hoistReactPkg, reactPkg;
31
31
  try {hoistReactPkg = require('@xh/hoist/package')} catch (e) {hoistReactPkg = {version: 'NOT_FOUND'}}
32
- try {reactPkg = require('react/package')} catch (e) {reactPkg = {version: 'NOT_FOUND'}}
32
+ try {reactPkg = require('react')} catch (e) {reactPkg = {version: 'NOT_FOUND'}}
33
33
 
34
34
  /**
35
35
  * Consolidated Webpack configuration for both dev-time and production builds of Hoist React web
@@ -464,14 +464,16 @@ async function configureWebpack(env) {
464
464
 
465
465
  // Support our current decorator syntax, for MobX and Hoist decorators.
466
466
  // See notes @ https://babeljs.io/docs/en/babel-plugin-proposal-decorators#legacy
467
- ['@babel/plugin-proposal-decorators', {legacy: true}],
468
-
469
- // Support classes level fields - must come after decorators plugin and be loose.
470
- ['@babel/plugin-proposal-class-properties', {loose: true}],
471
- // Must also configure private-* plugins below to config the "loose" setting
472
- // to match plugin-proposal-class-properties.
473
- ['@babel/plugin-proposal-private-methods', {loose: true}],
474
- ['@babel/plugin-proposal-private-property-in-object', {loose: true}],
467
+ // and https://mobx.js.org/enabling-decorators.html#babel-7
468
+ ['@babel/plugin-proposal-decorators', {version: 'legacy'}],
469
+
470
+ // Support class-level fields.
471
+ // Must come after decorators plugin as per Babel docs linked above.
472
+ ['@babel/plugin-proposal-class-properties'],
473
+
474
+ // Support private methods + properties.
475
+ ['@babel/plugin-proposal-private-methods'],
476
+ ['@babel/plugin-proposal-private-property-in-object'],
475
477
 
476
478
  // Support `let x = foo?.bar`.
477
479
  ['@babel/plugin-proposal-optional-chaining'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "Utilities for configuring builds of Hoist-React client applications.",
5
5
  "repository": "github:xh/hoist-dev-utils",
6
6
  "homepage": "https://github.com/xh/hoist-dev-utils",