repo stringlengths 5 106 | file_url stringlengths 78 301 | file_path stringlengths 4 211 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 14:56:49 2026-01-05 02:23:25 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/test-utils/src/fsFixture.js | packages/core/test-utils/src/fsFixture.js | // @flow strict-local
import type {FileSystem} from '@parcel/fs';
import assert from 'assert';
import nullthrows from 'nullthrows';
import path from 'path';
type FixtureToken = {|type: string, value: string|};
type Fixture = FixtureRoot | FixtureChild;
type FixtureChild = FixtureDir | FixtureFile | FixtureLink;
ex... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/test-utils/src/utils.js | packages/core/test-utils/src/utils.js | // @flow strict-local
import type {
Asset,
BuildEvent,
BuildSuccessEvent,
BundleGraph,
Dependency,
FilePath,
InitialParcelOptions,
PackagedBundle,
} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import type WorkerFarm from '@parcel/workers';
import type {IncomingMessage} from 'http'... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | true |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/test-utils/test/fsFixture.test.js | packages/core/test-utils/test/fsFixture.test.js | // @flow
import {
dedentRaw,
fsFixture,
toFixture,
FixtureParser,
FixtureTokenizer,
FixtureRoot,
FixtureDir,
FixtureFile,
FixtureLink,
} from '../src/fsFixture';
import {MemoryFS} from '@parcel/fs';
import WorkerFarm from '@parcel/workers';
import assert from 'assert';
import path from 'path';
desc... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/rust/index.js | packages/core/rust/index.js | /* tslint:disable */
/* eslint-disable */
/* prettier-ignore */
/* auto-generated by NAPI-RS */
const { existsSync, readFileSync } = require('fs')
const {join} = require('path');
const {platform, arch} = process;
let nativeBinding = null;
let localFileExisted = false;
let loadError = null;
function isMusl() {
//... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/rust/src/index.js | packages/core/rust/src/index.js | // @flow
export * from '../index';
export * from './utils';
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/rust/src/browser.js | packages/core/rust/src/browser.js | const {Environment, napi} = require('napi-wasm');
const utils = require('./utils');
let env;
module.exports.init = async function init(input) {
if (env) return;
input = input ?? new URL('parcel_node_bindings.wasm', import.meta.url);
const {instance} = await WebAssembly.instantiateStreaming(fetch(input), {
e... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/rust/src/utils.js | packages/core/rust/src/utils.js | // @flow
import type {
Environment,
EnvironmentOptions,
DependencyOptions,
TransformerResult,
} from '@parcel/types';
import type {RustEnvironment, RustDependency, RustAsset} from '../';
const IS_LIBRARY = 1 << 0;
const SHOULD_OPTIMIZE = 1 << 1;
const SHOULD_SCOPE_HOIST = 1 << 2;
export function envToRust(env... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/Parcel.js | packages/core/core/src/Parcel.js | // @flow strict-local
import type {
Asset,
AsyncSubscription,
BuildEvent,
BuildSuccessEvent,
InitialParcelOptions,
PackagedBundle as IPackagedBundle,
ParcelTransformOptions,
ParcelResolveOptions,
ParcelResolveResult,
} from '@parcel/types';
import path from 'path';
import type {ParcelOptions} from '.... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/CommittedAsset.js | packages/core/core/src/CommittedAsset.js | // @flow strict-local
import type {AST, Blob} from '@parcel/types';
import type {Asset, Dependency, ParcelOptions} from './types';
import {Readable} from 'stream';
import SourceMap from '@parcel/source-map';
import {bufferStream, blobToStream, streamFromPromise} from '@parcel/utils';
import {generateFromAST} from './... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/UncommittedAsset.js | packages/core/core/src/UncommittedAsset.js | // @flow strict-local
import type {
AST,
Blob,
DependencyOptions,
FileCreateInvalidation,
GenerateOutput,
PackageName,
TransformerResult,
} from '@parcel/types';
import type {Asset, Dependency, ParcelOptions, Invalidations} from './types';
import invariant from 'assert';
import {Readable} from 'stream';... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/serializer.js | packages/core/core/src/serializer.js | // @flow
import {createBuildCache} from './buildCache';
import {serializeRaw, deserializeRaw} from './serializerCore';
export {serializeRaw, deserializeRaw} from './serializerCore';
const nameToCtor: Map<string, Class<any>> = new Map();
const ctorToName: Map<Class<any>, string> = new Map();
export function registerS... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/types.js | packages/core/core/src/types.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {
ASTGenerator,
BuildMode,
Engines,
EnvironmentContext,
EnvMap,
FilePath,
Glob,
LogLevel,
Meta,
DependencySpecifier,
PackageName,
ReporterEvent,
SemverRange,
ServerOptions,
SourceType,
Stats,
Symbol,
Ta... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/PackagerRunner.js | packages/core/core/src/PackagerRunner.js | // @flow strict-local
import type {
Blob,
FilePath,
BundleResult,
Bundle as BundleType,
BundleGraph as BundleGraphType,
NamedBundle as NamedBundleType,
Async,
} from '@parcel/types';
import type SourceMap from '@parcel/source-map';
import type {
Bundle as InternalBundle,
Config,
DevDepRequest,
De... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/Transformation.js | packages/core/core/src/Transformation.js | // @flow strict-local
import type {
FilePath,
GenerateOutput,
Transformer,
TransformerResult,
PackageName,
ResolveOptions,
SemverRange,
} from '@parcel/types';
import type {WorkerApi} from '@parcel/workers';
import type {
Asset as AssetValue,
TransformationRequest,
Config,
DevDepRequest,
DevDep... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/resolveOptions.js | packages/core/core/src/resolveOptions.js | // @flow strict-local
import type {
FilePath,
InitialParcelOptions,
DependencySpecifier,
InitialServerOptions,
} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import type {ParcelOptions} from './types';
import path from 'path';
import {hashString} from '@parcel/rust';
import {NodeFS} from ... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/AssetGraph.js | packages/core/core/src/AssetGraph.js | // @flow strict-local
import type {GraphVisitor} from '@parcel/types';
import type {
ContentGraphOpts,
ContentKey,
NodeId,
SerializedContentGraph,
} from '@parcel/graph';
import type {
Asset,
AssetGraphNode,
AssetGroup,
AssetGroupNode,
AssetNode,
Dependency,
DependencyNode,
Entry,
EntryFileNo... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/assetUtils.js | packages/core/core/src/assetUtils.js | // @flow strict-local
import type {
ASTGenerator,
BundleBehavior,
FilePath,
GenerateOutput,
Meta,
PackageName,
Stats,
Symbol,
SourceLocation,
Transformer,
} from '@parcel/types';
import type {
Asset,
RequestInvalidation,
Dependency,
Environment,
ParcelOptions,
} from './types';
import {R... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/Validation.js | packages/core/core/src/Validation.js | // @flow strict-local
import type {WorkerApi} from '@parcel/workers';
import type {AssetGroup, ParcelOptions, ReportFn} from './types';
import type {Validator, ValidateResult} from '@parcel/types';
import type {Diagnostic} from '@parcel/diagnostic';
import path from 'path';
import {resolveConfig} from '@parcel/utils'... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/BundleGraph.js | packages/core/core/src/BundleGraph.js | // @flow strict-local
import type {
GraphVisitor,
FilePath,
Symbol,
TraversalActions,
} from '@parcel/types';
import type {
ContentKey,
ContentGraphOpts,
NodeId,
SerializedContentGraph,
} from '@parcel/graph';
import type {
Asset,
AssetNode,
Bundle,
BundleGraphNode,
BundleGroup,
Dependency... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | true |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/serializerCore.browser.js | packages/core/core/src/serializerCore.browser.js | // @flow
import {Buffer} from 'buffer';
import * as msgpackr from 'msgpackr';
let encoder = new msgpackr.Encoder({structuredClone: true});
export let serializeRaw: any => Buffer = v => Buffer.from(encoder.encode(v));
export let deserializeRaw: Buffer => any = v => encoder.decode(v);
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/loadDotEnv.js | packages/core/core/src/loadDotEnv.js | // @flow strict-local
import type {FileSystem} from '@parcel/fs';
import type {EnvMap, FilePath} from '@parcel/types';
import {resolveConfig} from '@parcel/utils';
// $FlowFixMe
import dotenv from 'dotenv';
import variableExpansion from 'dotenv-expand';
export default async function loadEnv(
env: EnvMap,
fs: Fil... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/ReporterRunner.js | packages/core/core/src/ReporterRunner.js | // @flow strict-local
import type {ReporterEvent, Reporter} from '@parcel/types';
import type {WorkerApi} from '@parcel/workers';
import type {Bundle as InternalBundle, ParcelOptions} from './types';
import type {LoadedPlugin} from './ParcelConfig';
import invariant from 'assert';
import {
bundleToInternalBundle,
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/index.js | packages/core/core/src/index.js | // @flow
// Needs to be exported first because of circular imports
export {
registerSerializableClass,
unregisterSerializableClass,
prepareForSerialization,
restoreDeserializedObject,
serialize,
deserialize,
} from './serializer';
export {
default,
default as Parcel,
BuildError,
createWorkerFarm,
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/projectPath.js | packages/core/core/src/projectPath.js | // @flow strict-local
import type {FilePath} from '@parcel/types';
import path from 'path';
import {relativePath, normalizeSeparators} from '@parcel/utils';
/**
* A path that's relative to the project root.
*/
export opaque type ProjectPath = string;
function toProjectPath_(projectRoot: FilePath, p: FilePath): Proj... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/InternalConfig.js | packages/core/core/src/InternalConfig.js | // @flow strict-local
import type {PackageName, ConfigResult} from '@parcel/types';
import type {
Config,
Environment,
InternalFileCreateInvalidation,
InternalDevDepOptions,
} from './types';
import type {ProjectPath} from './projectPath';
import {fromProjectPathRelative} from './projectPath';
import {createE... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/buildCache.js | packages/core/core/src/buildCache.js | // @flow
const buildCaches: Array<Map<any, any>> = [];
export function createBuildCache<K, V>(): Map<K, V> {
let cache = new Map<K, V>();
buildCaches.push(cache);
return cache;
}
export function clearBuildCaches() {
for (let cache of buildCaches) {
cache.clear();
}
}
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/Environment.js | packages/core/core/src/Environment.js | // @flow
import type {
EnvironmentOptions,
Environment as IEnvironment,
FilePath,
} from '@parcel/types';
import type {Environment, InternalSourceLocation} from './types';
import {hashString} from '@parcel/rust';
import {toInternalSourceLocation} from './utils';
import PublicEnvironment from './public/Environment... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/summarizeRequest.js | packages/core/core/src/summarizeRequest.js | // @flow strict-local
import type {Blob, FilePath} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import path from 'path';
const NODE_MODULES = `${path.sep}node_modules${path.sep}`;
const BUFFER_LIMIT = 5000000; // 5mb
export default async function summarizeRequest(
fs: FileSystem,
req: {|fil... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/constants.js | packages/core/core/src/constants.js | // @flow strict-local
// $FlowFixMe
import {version} from '../package.json';
export const PARCEL_VERSION = version;
export const HASH_REF_PREFIX = 'HASH_REF_';
export const HASH_REF_HASH_LEN = 16;
export const HASH_REF_REGEX: RegExp = new RegExp(
`${HASH_REF_PREFIX}\\w{${HASH_REF_HASH_LEN}}`,
'g',
);
export cons... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/RequestTracker.js | packages/core/core/src/RequestTracker.js | // @flow strict-local
import invariant, {AssertionError} from 'assert';
import path from 'path';
import {ContentGraph} from '@parcel/graph';
import type {
ContentGraphOpts,
ContentKey,
NodeId,
SerializedContentGraph,
} from '@parcel/graph';
import logger from '@parcel/logger';
import {hashString} from '@parce... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | true |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/applyRuntimes.js | packages/core/core/src/applyRuntimes.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {Dependency, NamedBundle as INamedBundle} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {
Asset,
AssetGroup,
Bundle as InternalBundle,
Config,
DevDepRequest,
DevDepRequestRef,
Parcel... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/worker.js | packages/core/core/src/worker.js | // @flow strict-local
import type {
Bundle,
ParcelOptions,
ProcessedParcelConfig,
RequestInvalidation,
} from './types';
import type {SharedReference, WorkerApi} from '@parcel/workers';
import {loadConfig as configCache} from '@parcel/utils';
import type {DevDepSpecifier} from './requests/DevDepRequest';
impo... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/ParcelConfig.js | packages/core/core/src/ParcelConfig.js | // @flow
import type {
Glob,
Transformer,
Resolver,
Bundler,
Namer,
Runtime,
PackageName,
Optimizer,
Compressor,
Packager,
Reporter,
Semver,
SemverRange,
Validator,
FilePath,
} from '@parcel/types';
import type {
ProcessedParcelConfig,
ParcelPluginNode,
PureParcelConfigPipeline,
Ex... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/registerCoreWithSerializer.js | packages/core/core/src/registerCoreWithSerializer.js | // @flow
import {Graph} from '@parcel/graph';
import {registerSerializableClass} from './serializer';
import AssetGraph from './AssetGraph';
import BundleGraph from './BundleGraph';
import ParcelConfig from './ParcelConfig';
import {RequestGraph} from './RequestTracker';
import Config from './public/Config';
import pac... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/Dependency.js | packages/core/core/src/Dependency.js | // @flow
import type {
FilePath,
Meta,
DependencySpecifier,
SourceLocation,
Symbol,
BundleBehavior as IBundleBehavior,
SemverRange,
} from '@parcel/types';
import type {Dependency, Environment, Target} from './types';
import {hashString} from '@parcel/rust';
import {
SpecifierType,
Priority,
BundleB... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/SymbolPropagation.js | packages/core/core/src/SymbolPropagation.js | // @flow
import type {ContentKey, NodeId} from '@parcel/graph';
import type {Meta, Symbol} from '@parcel/types';
import type {Diagnostic} from '@parcel/diagnostic';
import type {
AssetNode,
DependencyNode,
InternalSourceLocation,
ParcelOptions,
} from './types';
import {type default as AssetGraph} from './Asse... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/ParcelConfig.schema.js | packages/core/core/src/ParcelConfig.schema.js | // @flow strict-local
import type {PackageName} from '@parcel/types';
import type {SchemaEntity} from '@parcel/utils';
import assert from 'assert';
// Reasoning behind this validation:
// https://github.com/parcel-bundler/parcel/issues/3397#issuecomment-521353931
export function validatePackageName(
pkg: ?PackageNam... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/dumpGraphToGraphViz.js | packages/core/core/src/dumpGraphToGraphViz.js | // @flow
import type {Asset, BundleBehavior} from '@parcel/types';
import type {Graph} from '@parcel/graph';
import type {AssetGraphNode, BundleGraphNode, Environment} from './types';
import {bundleGraphEdgeTypes} from './BundleGraph';
import {requestGraphEdgeTypes} from './RequestTracker';
import path from 'path';
i... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/loadParcelPlugin.js | packages/core/core/src/loadParcelPlugin.js | // @flow
import type {FilePath, PackageName, Semver, SemverRange} from '@parcel/types';
import type {ParcelOptions} from './types';
import path from 'path';
import semver from 'semver';
import logger from '@parcel/logger';
import nullthrows from 'nullthrows';
import ThrowableDiagnostic, {
generateJSONCodeHighlights,... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/serializerCore.js | packages/core/core/src/serializerCore.js | // @flow
import v8 from 'v8';
export let serializeRaw: any => Buffer = v8.serialize;
export let deserializeRaw: Buffer => any = v8.deserialize;
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/utils.js | packages/core/core/src/utils.js | // @flow strict-local
import type {
FilePath,
FileCreateInvalidation,
SourceLocation,
} from '@parcel/types';
import type {
BundleGroup,
ParcelOptions,
InternalFileCreateInvalidation,
InternalSourceLocation,
InternalDevDepOptions,
Invalidations,
} from './types';
import type {PackageManager} from '@p... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/TargetDescriptor.schema.js | packages/core/core/src/TargetDescriptor.schema.js | // @flow strict-local
import type {SchemaEntity, SchemaObject} from '@parcel/utils';
export const ENGINES_SCHEMA: SchemaEntity = {
type: 'object',
properties: {
browsers: {
oneOf: [
{
type: 'array',
items: {
type: 'string',
},
},
{
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/AssetRequest.js | packages/core/core/src/requests/AssetRequest.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {Async} from '@parcel/types';
import type {StaticRunOpts} from '../RequestTracker';
import type {
AssetRequestInput,
AssetRequestResult,
TransformationRequest,
} from '../types';
import type {ConfigAndCachePath} from './ParcelConfig... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/ParcelBuildRequest.js | packages/core/core/src/requests/ParcelBuildRequest.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {Async} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {StaticRunOpts} from '../RequestTracker';
import type {Asset, AssetGroup, PackagedBundleInfo} from '../types';
import type BundleGraph from '... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/ValidationRequest.js | packages/core/core/src/requests/ValidationRequest.js | // @flow strict-local
import type {Async} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {StaticRunOpts} from '../RequestTracker';
import type {AssetGroup} from '../types';
import type {ConfigAndCachePath} from './ParcelConfigRequest';
import nullthrows from 'nullthrows';
impor... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/WriteBundlesRequest.js | packages/core/core/src/requests/WriteBundlesRequest.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {Async} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {StaticRunOpts} from '../RequestTracker';
import {requestTypes} from '../RequestTracker';
import type {PackagedBundleInfo} from '../types';
im... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/AssetGraphRequest.js | packages/core/core/src/requests/AssetGraphRequest.js | // @flow strict-local
import type {NodeId} from '@parcel/graph';
import type {Async} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {
Asset,
AssetGroup,
AssetRequestInput,
Dependency,
Entry,
ParcelOptions,
Target,
} from '../types';
import type {StaticRunOpts, Run... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/EntryRequest.js | packages/core/core/src/requests/EntryRequest.js | // @flow strict-local
import type {Async, FilePath, PackageJSON, Glob} from '@parcel/types';
import type {StaticRunOpts} from '../RequestTracker';
import type {Entry, InternalFile, ParcelOptions} from '../types';
import type {FileSystem} from '@parcel/fs';
import {
isDirectoryInside,
isGlob,
glob,
findAlterna... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/BundleGraphRequest.js | packages/core/core/src/requests/BundleGraphRequest.js | // @flow strict-local
import type {Async, Bundle as IBundle, Namer} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type ParcelConfig, {LoadedPlugin} from '../ParcelConfig';
import type {StaticRunOpts, RunAPI} from '../RequestTracker';
import type {
Asset,
AssetGroup,
Bundle as... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/DevDepRequest.js | packages/core/core/src/requests/DevDepRequest.js | // @flow
import type {
DependencySpecifier,
SemverRange,
Invalidations,
} from '@parcel/types';
import type ParcelConfig from '../ParcelConfig';
import type {
DevDepRequest,
DevDepRequestRef,
ParcelOptions,
InternalDevDepOptions,
} from '../types';
import type {RequestResult, RunAPI} from '../RequestTrack... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/PathRequest.js | packages/core/core/src/requests/PathRequest.js | // @flow strict-local
import type {Diagnostic} from '@parcel/diagnostic';
import type {
Async,
FileCreateInvalidation,
FilePath,
Resolver,
} from '@parcel/types';
import type {StaticRunOpts} from '../RequestTracker';
import type {
AssetGroup,
Config,
Dependency,
DevDepRequest,
DevDepRequestRef,
Parc... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/ParcelConfigRequest.js | packages/core/core/src/requests/ParcelConfigRequest.js | // @flow strict-local
import type {
Async,
FilePath,
PackageName,
RawParcelConfig,
ResolvedParcelConfigFile,
} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import type {StaticRunOpts} from '../RequestTracker';
import type {
ExtendableParcelConfigPipeline,
PureParcelConfigPipeline,
P... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/TargetRequest.js | packages/core/core/src/requests/TargetRequest.js | // @flow strict-local
import type {Diagnostic} from '@parcel/diagnostic';
import type {FileSystem} from '@parcel/fs';
import type {
Async,
Engines,
FilePath,
PackageJSON,
PackageTargetDescriptor,
TargetDescriptor,
OutputFormat,
} from '@parcel/types';
import type {StaticRunOpts, RunAPI} from '../RequestT... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | true |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/ConfigRequest.js | packages/core/core/src/requests/ConfigRequest.js | // @flow
import type {
Async,
Config as IConfig,
PluginOptions as IPluginOptions,
PluginLogger as IPluginLogger,
PluginTracer as IPluginTracer,
NamedBundle as INamedBundle,
BundleGraph as IBundleGraph,
} from '@parcel/types';
import {readConfig, hashObject} from '@parcel/utils';
import type {
Config,
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/WriteBundleRequest.js | packages/core/core/src/requests/WriteBundleRequest.js | // @flow strict-local
import type {FileSystem, FileOptions} from '@parcel/fs';
import type {ContentKey} from '@parcel/graph';
import type {Async, Compressor} from '@parcel/types';
import type {RunAPI, StaticRunOpts} from '../RequestTracker';
import type {Bundle, PackagedBundleInfo, ParcelOptions} from '../types';
imp... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/requests/PackageRequest.js | packages/core/core/src/requests/PackageRequest.js | // @flow strict-local
import type {ContentKey} from '@parcel/graph';
import type {Async} from '@parcel/types';
import type {SharedReference} from '@parcel/workers';
import type {StaticRunOpts} from '../RequestTracker';
import {requestTypes, type RunAPI} from '../RequestTracker';
import type {Bundle} from '../types';
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Target.js | packages/core/core/src/public/Target.js | // @flow
import type {
FilePath,
Target as ITarget,
Environment as IEnvironment,
SourceLocation,
} from '@parcel/types';
import type {Target as TargetValue, ParcelOptions} from '../types';
import nullthrows from 'nullthrows';
import Environment from './Environment';
import {fromProjectPath} from '../projectPat... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/BundleGraph.js | packages/core/core/src/public/BundleGraph.js | // @flow strict-local
import type {
Asset as IAsset,
Bundle as IBundle,
BundleGraph as IBundleGraph,
BundleGraphTraversable,
BundleGroup as IBundleGroup,
Dependency as IDependency,
ExportSymbolResolution,
FilePath,
GraphVisitor,
Symbol,
SymbolResolution,
Target,
} from '@parcel/types';
import t... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Symbols.js | packages/core/core/src/public/Symbols.js | // @flow
import type {
Symbol as ISymbol,
MutableAssetSymbols as IMutableAssetSymbols,
AssetSymbols as IAssetSymbols,
MutableDependencySymbols as IMutableDependencySymbols,
SourceLocation,
Meta,
} from '@parcel/types';
import type {Asset, Dependency, ParcelOptions} from '../types';
import nullthrows from '... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/MutableBundleGraph.js | packages/core/core/src/public/MutableBundleGraph.js | // @flow strict-local
import type {
Asset as IAsset,
Bundle as IBundle,
BundleGroup as IBundleGroup,
CreateBundleOpts,
Dependency as IDependency,
MutableBundleGraph as IMutableBundleGraph,
Target,
} from '@parcel/types';
import type {
ParcelOptions,
BundleGroup as InternalBundleGroup,
BundleNode,
}... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Environment.js | packages/core/core/src/public/Environment.js | // @flow strict-local
import type {
Environment as IEnvironment,
EnvironmentContext,
EnvironmentFeature,
Engines,
OutputFormat,
PackageName,
VersionMap,
SourceLocation,
SourceType,
TargetSourceMapOptions,
} from '@parcel/types';
import type {Environment as InternalEnvironment, ParcelOptions} from '.... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/PluginOptions.js | packages/core/core/src/public/PluginOptions.js | // @flow
import type {
BuildMode,
EnvMap,
FilePath,
LogLevel,
PluginOptions as IPluginOptions,
ServerOptions,
HMROptions,
DetailedReportOptions,
} from '@parcel/types';
import type {FileSystem} from '@parcel/fs';
import type {PackageManager} from '@parcel/package-manager';
import type {ParcelOptions} fr... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Asset.js | packages/core/core/src/public/Asset.js | // @flow strict-local
import type SourceMap from '@parcel/source-map';
import type {Readable} from 'stream';
import type {FileSystem} from '@parcel/fs';
import type {
Asset as IAsset,
AST,
ASTGenerator,
Dependency as IDependency,
DependencyOptions,
Environment as IEnvironment,
EnvironmentOptions,
File... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Bundle.js | packages/core/core/src/public/Bundle.js | // @flow strict-local
import type {
Bundle as InternalBundle,
ParcelOptions,
PackagedBundleInfo,
} from '../types';
import type {
Asset as IAsset,
Bundle as IBundle,
BundleTraversable,
Dependency as IDependency,
Environment as IEnvironment,
GraphVisitor,
NamedBundle as INamedBundle,
PackagedBundl... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Dependency.js | packages/core/core/src/public/Dependency.js | // @flow
import type {
Dependency as IDependency,
Environment as IEnvironment,
FilePath,
Meta,
MutableDependencySymbols as IMutableDependencySymbols,
SourceLocation,
SpecifierType,
DependencyPriority,
BundleBehavior,
} from '@parcel/types';
import type {Dependency as InternalDependency, ParcelOptions}... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/Config.js | packages/core/core/src/public/Config.js | // @flow strict-local
import type {
Config as IConfig,
ConfigResult,
FileCreateInvalidation,
FilePath,
PackageJSON,
ConfigResultWithFilePath,
DevDepOptions,
} from '@parcel/types';
import type {Config, ParcelOptions} from '../types';
import invariant from 'assert';
import path from 'path';
import {
Def... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/src/public/BundleGroup.js | packages/core/core/src/public/BundleGroup.js | // @flow
import type {
BundleGroup as IBundleGroup,
Target as ITarget,
} from '@parcel/types';
import type {BundleGroup as InternalBundleGroup, ParcelOptions} from '../types';
import nullthrows from 'nullthrows';
import Target from './Target';
const internalBundleGroupToBundleGroup: WeakMap<
InternalBundleGroup... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/utils.test.js | packages/core/core/test/utils.test.js | // @flow strict-local
import assert from 'assert';
import {getPublicId} from '../src/utils';
const id = '0123456789abcdef0123456789abcdef';
const fullPublicId = '296TIIbB3u904riPYGPJJ';
describe('getPublicId', () => {
it('only accepts 32-character hexadecimal strings', () => {
assert.throws(() => {
getPu... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PublicEnvironment.test.js | packages/core/core/test/PublicEnvironment.test.js | // @flow strict-local
import assert from 'assert';
import {createEnvironment} from '../src/Environment';
import PublicEnvironment from '../src/public/Environment';
import {DEFAULT_OPTIONS} from './test-utils';
describe('Public Environment', () => {
it('has correct support data for ChromeAndroid', () => {
let en... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/Parcel.test.js | packages/core/core/test/Parcel.test.js | // @flow strict-local
import type {InitialParcelOptions} from '@parcel/types';
import WorkerFarm from '@parcel/workers';
// flowlint-next-line untyped-import:off
import sinon from 'sinon';
import assert from 'assert';
import path from 'path';
import Parcel, {createWorkerFarm} from '../src/Parcel';
describe('Parcel', ... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/serializer.test.js | packages/core/core/test/serializer.test.js | // @flow
import {
serialize,
deserialize,
registerSerializableClass,
unregisterSerializableClass,
} from '../src/serializer';
import assert from 'assert';
import sinon from 'sinon';
describe('serializer', () => {
it('should serialize a basic object', () => {
let serialized = serialize({foo: 2, bar: 3});
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PublicBundle.test.js | packages/core/core/test/PublicBundle.test.js | // @flow strict-local
import type {Bundle as InternalBundle} from '../src/types';
import assert from 'assert';
import {ContentGraph} from '@parcel/graph';
import {Bundle, NamedBundle, PackagedBundle} from '../src/public/Bundle';
import BundleGraph from '../src/BundleGraph';
import {createEnvironment} from '../src/Env... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/TargetRequest.test.js | packages/core/core/test/TargetRequest.test.js | // @flow strict-local
import assert from 'assert';
import path from 'path';
import tempy from 'tempy';
import {inputFS as fs} from '@parcel/test-utils';
import {md} from '@parcel/diagnostic';
import {normalizeSeparators} from '@parcel/utils';
import {TargetResolver} from '../src/requests/TargetRequest';
import {DEFAUL... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | true |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PackagerRunner.test.js | packages/core/core/test/PackagerRunner.test.js | // // @flow
// 'use strict';
// const PackagerRunner = require('../src/PackagerRunner');
// const assert = require('assert');
// const path = require('path');
// const config = require('@parcel/config-default');
// describe('PackagerRunner', () => {
// it('works', async () => {
// let bundle = {
// destP... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/InternalAsset.test.js | packages/core/core/test/InternalAsset.test.js | // @flow strict-local
import assert from 'assert';
import UncommittedAsset from '../src/UncommittedAsset';
import {createAsset as _createAsset} from '../src/assetUtils';
import {createEnvironment} from '../src/Environment';
import {DEFAULT_OPTIONS} from './test-utils';
import {toProjectPath} from '../src/projectPath';... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/RequestTracker.test.js | packages/core/core/test/RequestTracker.test.js | // @flow strict-local
import assert from 'assert';
import nullthrows from 'nullthrows';
import RequestTracker, {type RunAPI} from '../src/RequestTracker';
import WorkerFarm from '@parcel/workers';
import {DEFAULT_OPTIONS} from './test-utils';
import {INITIAL_BUILD} from '../src/constants';
import {makeDeferredWithProm... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PublicDependency.test.js | packages/core/core/test/PublicDependency.test.js | // @flow strict-local
import assert from 'assert';
import {createEnvironment} from '../src/Environment';
import {createDependency} from '../src/Dependency';
import {getPublicDependency} from '../src/public/Dependency';
import {DEFAULT_OPTIONS} from './test-utils';
describe('Public Dependency', () => {
it('returns t... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/ParcelConfig.test.js | packages/core/core/test/ParcelConfig.test.js | // @flow strict-local
import ParcelConfig from '../src/ParcelConfig';
import assert from 'assert';
import path from 'path';
import sinon from 'sinon';
import logger from '@parcel/logger';
import {inputFS} from '@parcel/test-utils';
import {parseAndProcessConfig} from '../src/requests/ParcelConfigRequest';
import {DEFA... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/BundleGraph.test.js | packages/core/core/test/BundleGraph.test.js | // @flow strict-local
import assert from 'assert';
import BundleGraph from '../src/BundleGraph';
import {DEFAULT_ENV, DEFAULT_TARGETS} from './test-utils';
import AssetGraph, {nodeFromAssetGroup} from '../src/AssetGraph';
import {createAsset as _createAsset} from '../src/assetUtils';
import {createDependency as _creat... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/SymbolPropagation.test.js | packages/core/core/test/SymbolPropagation.test.js | // @flow strict-local
import assert from 'assert';
import invariant from 'assert';
import nullthrows from 'nullthrows';
import type {FilePath, SourceLocation, Meta, Symbol} from '@parcel/types';
import type {ContentKey, NodeId} from '@parcel/graph';
import type {Diagnostic} from '@parcel/diagnostic';
import ThrowableDi... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/ParcelConfigRequest.test.js | packages/core/core/test/ParcelConfigRequest.test.js | // @flow
import assert from 'assert';
import nullthrows from 'nullthrows';
import path from 'path';
import ParcelConfig from '../src/ParcelConfig';
import {
validateConfigFile,
mergePipelines,
mergeMaps,
mergeConfigs,
resolveExtends,
parseAndProcessConfig,
resolveParcelConfig,
processConfig,
} from '../... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/AssetGraph.test.js | packages/core/core/test/AssetGraph.test.js | // @flow strict-local
import assert from 'assert';
import invariant from 'assert';
import nullthrows from 'nullthrows';
import AssetGraph, {
nodeFromAssetGroup,
nodeFromDep,
nodeFromEntryFile,
nodeFromAsset,
} from '../src/AssetGraph';
import {createDependency as _createDependency} from '../src/Dependency';
imp... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PublicMutableBundleGraph.test.js | packages/core/core/test/PublicMutableBundleGraph.test.js | // @flow strict-local
import type {Dependency} from '@parcel/types';
import assert from 'assert';
import invariant from 'assert';
import InternalBundleGraph from '../src/BundleGraph';
import MutableBundleGraph from '../src/public/MutableBundleGraph';
import {DEFAULT_ENV, DEFAULT_TARGETS, DEFAULT_OPTIONS} from './test... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/test-utils.js | packages/core/core/test/test-utils.js | // @flow strict-local
import type {Environment, ParcelOptions, Target} from '../src/types';
import {FSCache} from '@parcel/cache';
import tempy from 'tempy';
import path from 'path';
import {inputFS, outputFS} from '@parcel/test-utils';
import {relativePath} from '@parcel/utils';
import {NodePackageManager} from '@pa... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/EntryRequest.test.js | packages/core/core/test/EntryRequest.test.js | // @flow strict-local
import assert from 'assert';
import path from 'path';
import {md} from '@parcel/diagnostic';
import {inputFS as fs} from '@parcel/test-utils';
import {EntryResolver} from '../src/requests/EntryRequest';
import {DEFAULT_OPTIONS as _DEFAULT_OPTIONS} from './test-utils';
const DEFAULT_OPTIONS = {
... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/PublicAsset.test.js | packages/core/core/test/PublicAsset.test.js | // @flow strict-local
import assert from 'assert';
import {Asset, MutableAsset} from '../src/public/Asset';
import UncommittedAsset from '../src/UncommittedAsset';
import {createAsset as _createAsset} from '../src/assetUtils';
import {createEnvironment} from '../src/Environment';
import {DEFAULT_OPTIONS} from './test-... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/Environment.test.js | packages/core/core/test/Environment.test.js | // @flow strict-local
import assert from 'assert';
import {createEnvironment} from '../src/Environment';
describe('Environment', () => {
it('assigns a default environment with nothing passed', () => {
assert.deepEqual(createEnvironment(), {
id: 'c242f987e3544367',
context: 'browser',
engines: ... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/requests/DevDepRequest.test.js | packages/core/core/test/requests/DevDepRequest.test.js | // @flow strict-local
// eslint-disable-next-line @parcel/no-self-package-imports
import {clearBuildCaches} from '@parcel/core/src/buildCache';
import {resolveDevDepRequestRef} from '../../src/requests/DevDepRequest';
import type {DevDepRequest, DevDepRequestRef} from '../../src/types';
import {toProjectPath} from '..... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/requests/ConfigRequest.test.js | packages/core/core/test/requests/ConfigRequest.test.js | // @flow strict-local
import WorkerFarm from '@parcel/workers';
import path from 'path';
import assert from 'assert';
import sinon from 'sinon';
import {MemoryFS} from '@parcel/fs';
import {hashString} from '@parcel/rust';
import type {
ConfigRequest,
ConfigRequestResult,
} from '../../src/requests/ConfigRequest'... | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/bundle.js | packages/core/core/test/fixtures/bundle.js | // package intro
// module intro
require('./module-a.js');
require('./module-b.js');
// module outro
// module intro
console.log('hi'); // eslint-disable-line no-console
// module outro
// package outro
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/module-b.js | packages/core/core/test/fixtures/module-b.js | console.log('hi'); // eslint-disable-line no-console
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/module-a.js | packages/core/core/test/fixtures/module-a.js | require('./module-b.js');
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/local-plugin-config-pkg/node_modules/parcel-config-local/local-plugin.js | packages/core/core/test/fixtures/local-plugin-config-pkg/node_modules/parcel-config-local/local-plugin.js | const {Transformer} = require('@parcel/plugin');
module.exports = new Transformer({
transform(asset) {
return [asset];
}
});
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/plugins/local-plugin.js | packages/core/core/test/fixtures/plugins/local-plugin.js | const {Transformer} = require('@parcel/plugin');
module.exports = new Transformer({
transform(asset) {
return [asset];
}
});
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/plugins/node_modules/parcel-transformer-bad-engines/index.js | packages/core/core/test/fixtures/plugins/node_modules/parcel-transformer-bad-engines/index.js | const {Transformer} = require('@parcel/plugin');
module.exports = new Transformer({
transform(asset) {
return [asset];
}
});
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/plugins/node_modules/parcel-transformer-no-engines/index.js | packages/core/core/test/fixtures/plugins/node_modules/parcel-transformer-no-engines/index.js | const {Transformer} = require('@parcel/plugin');
module.exports = new Transformer({
transform(asset) {
return [asset];
}
});
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/invalid-target-source-not-file/src/index.js | packages/core/core/test/fixtures/invalid-target-source-not-file/src/index.js | // empty | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/invalid-source-not-file/src/index.js | packages/core/core/test/fixtures/invalid-source-not-file/src/index.js | // empty | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/glob-like/[entry].js | packages/core/core/test/fixtures/glob-like/[entry].js | javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false | |
parcel-bundler/parcel | https://github.com/parcel-bundler/parcel/blob/73f691d67d22482440babb2d1846b7da2160f7cc/packages/core/core/test/fixtures/parcel/index.js | packages/core/core/test/fixtures/parcel/index.js | export default 'test';
| javascript | MIT | 73f691d67d22482440babb2d1846b7da2160f7cc | 2026-01-04T14:58:42.192224Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.