Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devongovett committed Sep 14, 2024
1 parent 2a9dd9a commit beb03b5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions packages/core/core/src/BundleGraph.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type {
FilePath,
Symbol,
TraversalActions,
BundleBehavior as IBundleBehavior,
} from '@parcel/types';
import type {
ContentKey,
Expand All @@ -20,10 +19,8 @@ import type {
Bundle,
BundleGraphNode,
BundleGroup,
BundleNode,
Dependency,
DependencyNode,
Environment,
InternalSourceLocation,
Target,
} from './types';
Expand All @@ -40,8 +37,7 @@ import {DefaultMap, objectSortedEntriesDeep, getRootDir} from '@parcel/utils';
import {Priority, BundleBehavior, SpecifierType} from './types';
import {getBundleGroupId, getPublicId} from './utils';
import {ISOLATED_ENVS} from './public/Environment';
import {fromProjectPath, fromProjectPathRelative} from './projectPath';
import {HASH_REF_PREFIX} from './constants';
import {fromProjectPath} from './projectPath';

export const bundleGraphEdgeTypes = {
// A lack of an edge type indicates to follow the edge while traversing
Expand Down
1 change: 0 additions & 1 deletion packages/core/core/src/applyRuntimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ export default async function applyRuntimes<TResult: RequestResult>({
filePath,
isEntry,
env,
priority,
} of runtimeAssets) {
let sourceName = path.join(
path.dirname(filePath),
Expand Down
5 changes: 1 addition & 4 deletions packages/runtimes/js/src/JSRuntime.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import type {
import {Runtime} from '@parcel/plugin';
import {
relativeBundlePath,
validateSchema,
type SchemaEntity,
} from '@parcel/utils';
import {encodeJSONKeyComponent} from '@parcel/diagnostic';
import path from 'path';
import nullthrows from 'nullthrows';

Expand Down Expand Up @@ -71,7 +68,7 @@ let bundleDependencies = new WeakMap<
>();

export default (new Runtime({
apply({bundle, bundleGraph, options, config}) {
apply({bundle, bundleGraph, options}) {
// Dependency ids in code replaced with referenced bundle names
// Loader runtime added for bundle groups that don't have a native loader (e.g. HTML/CSS/Worker - isURL?),
// and which are not loaded by a parent bundle.
Expand Down

0 comments on commit beb03b5

Please sign in to comment.