Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jul 27, 2020
1 parent 3867081 commit b6f142a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion packages/core/core/src/PackagerRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ export default class PackagerRunner {
let farm = nullthrows(this.farm);
let {ref, dispose} = await farm.createSharedReference(bundleGraph);

let bundleInfoMap = {};
let bundleInfoMap: {|
[string]: {|
...BundleInfo,
cacheKeys: CacheKeyMap,
|},
|} = {};
let writeEarlyPromises = {};
let hashRefToNameHash = new Map();
// skip inline bundles, they will be processed via the parent bundle
Expand Down
3 changes: 2 additions & 1 deletion packages/core/core/src/public/MutableBundleGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type {
import type {ParcelOptions} from '../types';

import invariant from 'assert';
import path from 'path';
import nullthrows from 'nullthrows';
import {md5FromString} from '@parcel/utils';
import BundleGraph from './BundleGraph';
Expand Down Expand Up @@ -136,7 +137,7 @@ export default class MutableBundleGraph extends BundleGraph<IBundle>
let bundleId = md5FromString(
'bundle:' +
(opts.uniqueKey ?? nullthrows(entryAsset?.id)) +
target.distDir,
path.relative(this.#options.projectRoot, target.distDir),
);

let existing = this.#graph._graph.getNode(bundleId);
Expand Down

0 comments on commit b6f142a

Please sign in to comment.