@xh/hoist-dev-utils 7.0.0-SNAPSHOT.1666758132814 → 7.0.0-SNAPSHOT.1669063608393

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.
Files changed (2) hide show
  1. package/configureWebpack.js +6 -8
  2. package/package.json +15 -15
@@ -390,10 +390,6 @@ async function configureWebpack(env) {
390
390
  level: infrastructureLoggingLevel
391
391
  },
392
392
 
393
- experiments: {
394
- topLevelAwait: true
395
- },
396
-
397
393
  module: {
398
394
  // Flag missing exports as a failure vs. warning
399
395
  strictExportPresence: true,
@@ -461,6 +457,11 @@ async function configureWebpack(env) {
461
457
  ]
462
458
  ],
463
459
  plugins: [
460
+ // Support Typescript via Babel. `isTSX` option allows use of JSX inline with
461
+ // .js files for older JS apps. Typescript apps must use the .tsx extension for
462
+ // any files containing JSX syntax.
463
+ ['@babel/plugin-transform-typescript', {allowDeclareFields: true, isTSX: true}],
464
+
464
465
  // Support our current decorator syntax, for MobX and Hoist decorators.
465
466
  // See notes @ https://babeljs.io/docs/en/babel-plugin-proposal-decorators#legacy
466
467
  ['@babel/plugin-proposal-decorators', {legacy: true}],
@@ -478,10 +479,7 @@ async function configureWebpack(env) {
478
479
  // Support `let x = foo.bar ?? 'default'`.
479
480
  ['@babel/plugin-proposal-nullish-coalescing-operator'],
480
481
 
481
- // support export x = await fooAsync
482
- ['@babel/plugin-syntax-top-level-await'],
483
-
484
- // Avoid importing every FA icon ever made.
482
+ // Avoid importing every FA icon ever made.
485
483
  // See https://github.com/FortAwesome/react-fontawesome/issues/70
486
484
  [require('babel-plugin-transform-imports'), {
487
485
  '@fortawesome/pro-light-svg-icons': {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "7.0.0-SNAPSHOT.1666758132814",
3
+ "version": "7.0.0-SNAPSHOT.1669063608393",
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",
@@ -11,17 +11,17 @@
11
11
  "configureWebpack.js"
12
12
  ],
13
13
  "dependencies": {
14
- "@babel/core": "~7.19",
15
- "@babel/plugin-proposal-decorators": "~7.19",
16
- "@babel/preset-env": "~7.19",
17
- "@babel/preset-react": "~7.18",
18
- "@babel/preset-typescript": "~7.18",
14
+ "@babel/core": "^7.20",
15
+ "@babel/plugin-proposal-decorators": "^7.20",
16
+ "@babel/preset-env": "^7.20",
17
+ "@babel/preset-react": "^7.18",
18
+ "@babel/preset-typescript": "^7.18",
19
19
  "@cerner/duplicate-package-checker-webpack-plugin": "~2.3.0",
20
20
  "@types/lodash": "^4.0.0",
21
21
  "@types/react": "^18.0.0",
22
- "@xh/eslint-config": "5.0.0-SNAPSHOT.1666756809670",
23
- "autoprefixer": "~10.4.7",
24
- "babel-loader": "~8.2.5",
22
+ "@xh/eslint-config": "^5.0.0",
23
+ "autoprefixer": "~10.4.13",
24
+ "babel-loader": "~9.1.0",
25
25
  "babel-plugin-transform-imports": "~2.0.0",
26
26
  "case-sensitive-paths-webpack-plugin": "~2.4.0",
27
27
  "changelog-parser": "~2.8.1",
@@ -32,20 +32,20 @@
32
32
  "html-webpack-plugin": "~5.5.0",
33
33
  "html-webpack-tags-plugin": "~3.0.2",
34
34
  "lodash": "~4.17.21",
35
- "mini-css-extract-plugin": "~2.6.1",
35
+ "mini-css-extract-plugin": "~2.7.0",
36
36
  "postcss": "~8.4.14",
37
37
  "postcss-flexbugs-fixes": "~5.0.2",
38
38
  "postcss-loader": "~7.0.1",
39
39
  "rimraf": "~3.0.2",
40
- "sass": "~1.53.0",
41
- "sass-loader": "~13.0.2",
40
+ "sass": "~1.56.1",
41
+ "sass-loader": "~13.2.0",
42
42
  "sass-material-colors": "~0.0.5",
43
43
  "style-loader": "~3.3.1",
44
44
  "terser-webpack-plugin": "~5.3.3",
45
45
  "url-loader": "~4.1.1",
46
- "webpack": "~5.74.0",
47
- "webpack-bundle-analyzer": "~4.6.0",
48
- "webpack-cli": "~4.10.0",
46
+ "webpack": "~5.75.0",
47
+ "webpack-bundle-analyzer": "~4.7.0",
48
+ "webpack-cli": "~5.0.0",
49
49
  "webpack-dev-server": "~4.11.1",
50
50
  "webpackbar": "~5.0.2"
51
51
  }