Skip to content

Commit

Permalink
5.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
hong6316 committed Jul 19, 2022
2 parents bcd547c + 3ddcffb commit a813630
Show file tree
Hide file tree
Showing 5 changed files with 2,029 additions and 43,348 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 5.0.0 (July 19, 2022)

* Updated dependencies.

### pack

* Fixed build failure when `.env` file exists.
* Fixed `snapshot_blob.bin` file is not listed on the build results.

## 5.0.0-rc.1 (Jun 23, 2022)

### serve
Expand Down
6 changes: 2 additions & 4 deletions commands/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const minimist = require('minimist');
const formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
const printBuildError = require('react-dev-utils/printBuildError');
const stripAnsi = require('strip-ansi');
const {ProgressPlugin, webpack} = require('webpack');
const webpack = require('webpack');
const {optionParser: app, mixins, configHelper: helper} = require('@enact/dev-utils');

function displayHelp() {
Expand Down Expand Up @@ -147,7 +147,7 @@ function copyPublicFolder(output) {
// Print a detailed summary of build files.
function printFileSizes(stats, output) {
const assets = stats
.toJson({all: false, assets: true})
.toJson({all: false, assets: true, cachedAssets: true})
.assets.filter(asset => /\.(js|css|bin)$/.test(asset.name))
.map(asset => {
const size = fs.statSync(path.join(output, asset.name)).size;
Expand Down Expand Up @@ -262,8 +262,6 @@ function api(opts = {}) {
// Set any output path override
if (opts.output) config.output.path = path.resolve(opts.output);

if (opts.verbose) opts.ProgressPlugin = ProgressPlugin;

mixins.apply(config, opts);

// Remove all content but keep the directory so that
Expand Down
2 changes: 1 addition & 1 deletion config/dotenv.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fs = require('fs');
const path = require('path');
const dotenv = require('dotenv');
const expand = require('dotenv-expand');
const {expand} = require('dotenv-expand');

// Loads all required .env files in correct order, for a given mode.
// See https://github.com/bkeepers/dotenv#what-other-env-files-can-i-use
Expand Down
Loading

0 comments on commit a813630

Please sign in to comment.