text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ModuleDependency = require("./ModuleDependency"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /** @typedef {import("../Dependency")} Dependency */ /** @typ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ModuleDependency = require("./ModuleDependency"); const ModuleDependencyTemplateAsId = require("./ModuleDependencyTemplate...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerial<|fim_suffix|> get type() { return "module.hot.decline"; } get category() { return "commonjs"; } } makeSerializable( ModuleHot...
fim
webpack/webpack
javascript
<|fim_suffix|>dency); for (const req of dep.runtimeRequirements) { runtimeRequirements.add(req); } initFragments.push( new InitFragment( dep.initCode, InitFragment.STAGE_CONSTANTS, 0, dep.key, undefined ) ); } }; module.exports = ModuleInitFragmentDependency; <|fim_prefix|>/* MIT...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Dependency = require("../Dependency"); const DependencyTemplate = require("../DependencyTemplate"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /** @typede...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use st<|fim_suffix|>ates an instance of PrefetchDependency. * @param {string} request the request string */ constructor(request) { super(request); } get type() { return "prefetch"; } get ca...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const Dependency = require("../Dependency"); const InitFragment = require("../InitFragment"); const Template = require("../Template"); const { InlinedUsedName } = require("../optimize/InlineExports")...
fim
webpack/webpack
javascript
<|fim_suffix|>ependencyTemplateContext} templateContext the context object * @returns {void} */ apply( dependency, source, { chunkGraph, moduleGraph, runtime, runtimeTemplate, runtimeRequirements } ) { const dep = /** @type {PureExpressionDependency} */ (dependency); const runtimeCondition = dep._getRun...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ContextDependency = require("./ContextDependency"); const ModuleDependencyTemplateAsRequireId = require("./ModuleDependenc...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const RequireContextDependency = require("./RequireContextDependency"); /** @typedef {import("../ContextModule").ContextMode} ContextMode */ /** @typedef {import("../Dependency").Dependency...
fim
webpack/webpack
javascript
<|fim_suffix|>request: string }[]} */ let newItems; if (!finalResolveOptions.fullySpecified) { newItems = []; for (const item of items) { const { request, context } = item; for (const ext of finalResolveOptions.extensions) { if (request.endsWith(ext)) { newIt...
fim
webpack/webpack
javascript
<|fim_suffix|>nstructor(chunkName, loc) { super(chunkName, loc, null); } } makeSerializable( RequireEnsureDependenciesBlock, "webpack/lib/dependencies/RequireEnsureDependenciesBlock" ); module.exports = RequireEnsureDependenciesBlock; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.p...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const RequireEnsureDependenciesBlock = require("./RequireEnsureDependenciesBlock"); const RequireEnsureDependency = require("./RequireEnsureDependency"); const RequireEnsureItemDependency = ...
fim
webpack/webpack
javascript
<|fim_suffix|>ange = read(); super.deserialize(context); } } makeSerializable( RequireEnsureDependency, "webpack/lib/dependencies/RequireEnsureDependency" ); RequireEnsureDependency.Template = class RequireEnsureDependencyTemplate extends ( NullDependency.Template ) { /** * Applies the plugin by registering...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ModuleDependency = require("./ModuleDependency"); const NullDependency = require("./NullDependency"); class RequireEnsureItemDependency...
fim
webpack/webpack
javascript
<|fim_suffix|>/** @typedef {import("../Compiler")} Compiler */ /** @typedef {import("../javascript/JavascriptParser")} Parser */ const PLUGIN_NAME = "RequireEnsurePlugin"; class RequireEnsurePlugin { /** * Applies the plugin by registering its hooks on the compiler. * @param {Compiler} compiler the compiler inst...
fim
webpack/webpack
javascript
<|fim_suffix|>@param {ReplaceSource} source the current replace source which can be modified * @param {DependencyTemplateContext} templateContext the context object * @returns {void} */ apply(dependency, source, { runtimeRequirements }) { const dep = /** @type {RequireHeaderDependency} */ (dependency); runti...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Dependency = require("../Dependency"); const Template = require("../Template"); const makeSerializable = require("../util/makeSer<|fim_suffix|> range; } /** * Returns list of expo...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Aut<|fim_suffix|>String()) return; if (warn) { parser.state.module.addWarning( new RequireIncludeDeprecationWarning( /** @type {DependencyLocation} */ (expr.loc) ) ); } const dep = new RequireInclu...
fim
webpack/webpack
javascript
<|fim_suffix|>e === false) return; const warn = parserOptions.requireInclude === undefined; new RequireIncludeDependencyParserPlugin(warn).apply(parser); }; normalModuleFactory.hooks.parser .for(JAVASCRIPT_MODULE_TYPE_AUTO) .tap(PLUGIN_NAME, handler); normalModuleFactory.hooks.parser ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://w<|fim_suffix|>rror") .tap( PLUGIN_NAME, toConstantDependency( parser, RuntimeGlobals.uncaughtErrorHandler, [RuntimeGlobals.uncaughtErrorHandler] ) ); }; normalModuleFactory.hooks.parser .for(JAVASCRIPT_MODULE_TYP...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util<|fim_suffix|>s, context); this.range = range; this.valueRange = valueRange; } get type() { return "amd require context"; } /** * Seri...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Dependency = require("../Dependency"); const makeSerializable = require("../util/makeSerializable"); const ModuleDependency = require("./ModuleDependency"); const ModuleDependencyAsId ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const NullDependency = require("./NullDependency"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /**...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const NullDependency = require("./NullDependency"); /** @typedef {import("webpack-sources").ReplaceSource} ReplaceSource */ /**...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const NullDependency = require("./NullDependency"); /** @typedef {import("../Dependency").ExportsSpec} ExportsSpec */ /** @typedef {import("....
fim
webpack/webpack
javascript
<|fim_suffix|>ringify("object")) ); parser.hooks.evaluateTypeof .for("System") .tap(PLUGIN_NAME, evaluateToString("object")); setNotSupported("System.set"); setNotSupported("System.get"); setNotSupported("System.register"); parser.hooks.expression.for("System").tap(PLUGIN_NA...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); const Template = require("../Template"); class SystemRuntimeModule extends Runti...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Haijie Xie @hai-x */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const ContextDependency = require("./ContextDependency"); const ContextDependencyTemplateAsRequireCall = require("./ContextDependencyTemplateAsReq...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const RawDataUrlModule = require("../asset/RawDataUrlModule"); const { getDependencyUsedByExportsCondition } = require("../optimize/Inne...
fim
webpack/webpack
javascript
<|fim_suffix|>arserOptions * @returns {void} */ const handler = (parser, parserOptions) => { if (parserOptions.url === false) return; new URLParserPlugin(parserOptions).apply(parser); }; normalModuleFactory.hooks.parser .for(JAVASCRIPT_MODULE_TYPE_AUTO) .tap(PLUGIN_NAME, handl...
fim
webpack/webpack
javascript
<|fim_suffix|>template should be applied * @param {ReplaceSource} source the current replace source which can be modified * @param {DependencyTemplateContext} templateContext the context object * @returns {void} */ apply(dependency, source, { runtimeTemplate }) { const dep = /** @type {UnsupportedDependency}...
fim
webpack/webpack
javascript
<|fim_suffix|>lined literal return [{ name: [this.name], canInline: false }]; } get type() { return "wasm export import"; } get category() { return "wasm"; } /** * Serializes this instance into the provided serializer context. * @param {ObjectSerializerContext} context context */ serialize(context...
fim
webpack/webpack
javascript
<|fim_suffix|>uleGraph} moduleGraph module graph * @param {RuntimeSpec} runtime the runtime for which the module is analysed * @returns {ReferencedExports} referenced exports */ getReferencedExports(moduleGraph, runtime) { // wasm import glue needs the real binding, never an inlined literal return [{ name: [...
fim
webpack/webpack
javascript
<|fim_suffix|> } get type() { return "__webpack_is_included__"; } } makeSerializable( WebpackIsIncludedDependency, "webpack/lib/dependencies/WebpackIsIncludedDependency" ); WebpackIsIncludedDependency.Template = class WebpackIsIncludedDependencyTemplate extends ( ModuleDependency.Template ) { /** * Applies...
fim
webpack/webpack
javascript
<|fim_suffix|>tr ); } }; makeSerializable(WorkerDependency, "webpack/lib/dependencies/WorkerDependency"); module.exports = WorkerDependency; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const Dependency = require("../Dependency");...
fim
webpack/webpack
javascript
<|fim_suffix|>ents, values: options, spread: hasSpreadInOptions, insertType, insertLocation } = arg2 && arg2.type === "ObjectExpression" ? parseObjectExpression(parser, arg2) : { expressions: /** @type {Record<string, Expression | Pattern>} */ ({}), ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("estree").ArrowFunctionExpression} ArrowFunctionExpression */ /** @typedef {import("estree").Expression} Expression */ /** @typedef {import("estree").FunctionExpression}...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { UsageState } = require("../ExportsInfo"); /** @typedef {import("../Dependency").RawReferencedEx<|fim_suffix|>to track visited here if ( used !== UsageState.OnlyPropertiesUsed || ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { OriginalSource, RawSource } = require("webpack-sources"); const Module = require("../Module"); const { JAVASCRIPT_TYPE, JAVASCRIPT_TYPES } = require("../ModuleSourceTypeConstants")...
fim
webpack/webpack
javascript
<|fim_suffix|>he normal module factory * @returns {void} */ apply(normalModuleFactory) { const scope = this.options.scope; if (scope) { normalModuleFactory.hooks.factorize.tapAsync( PLUGIN_NAME, (data, callback) => { const [dependency] = data.dependencies; const { request } = dependency; ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const DelegatedSourceDependency = require("../dependencies/DelegatedSourceDependency"); const DelegatedModuleFactoryPlugin = require("./DelegatedModuleFactoryPlugin"); /** @typedef {import(...
fim
webpack/webpack
javascript
<|fim_suffix|>, this.options, (error) => { if (error) return callback(error); callback(); } ); }); } } module.exports = DllEntryPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const DllEntryDependency ...
fim
webpack/webpack
javascript
<|fim_suffix|>uper(JAVASCRIPT_MODULE_TYPE_DYNAMIC, context); // Info from Factory /** @type {Dependency[]} */ this.dependencies = dependencies; this.name = name; } /** * Returns the source types this module can generate. * @returns {SourceTypes} types available (do not mutate) */ getSourceTypes() { ...
fim
webpack/webpack
javascript
<|fim_suffix|>a object * @param {ModuleFactoryCallback} callback callback * @returns {void} */ create(data, callback) { const dependency = /** @type {DllEntryDependency} */ (data.dependencies[0]); callback(null, { module: new DllModule( data.context, dependency.dependencies, dependency.name ...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const FlagAllModulesAsUsedPlugin = require("../FlagAllModulesAsUsedPlugin"); const DllEntryPlugin = require("./DllEntryPlugin"); const LibManifestPlugin = require("./LibManifestPlugin"); /** @typedef {im...
fim
webpack/webpack
javascript
<|fim_suffix|>son(/** @type {Buffer} */ (result).toString("utf8"))) ); } catch (parseErr) { // Store the error in the params so that it can // be added as a compilation error later on. const manifestPath = makePathsRelative( compiler.context, manifest, compiler...
fim
webpack/webpack
javascript
<|fim_suffix|> mkdirp( intermediateFileSystem, dirname(intermediateFileSystem, targetPath), (err) => { if (err) return callback(err); intermediateFileSystem.writeFile(targetPath, buffer, callback); } ); }, callback ); } ); } } module.exports = ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ExternalsPlugin = require("../ExternalsPlugin"); /** @typedef {import("../Compiler")} Compiler */ /** @typedef {"main" | "preload" | "renderer"} ElectronContext */ class ElectronTarg...
fim
webpack/webpack
javascript
<|fim_suffix|>lass AbstractMethodError extends WebpackError { /** * Creates an error whose message points at the abstract method that was * invoked. */ constructor() { super(new Message().message); /** @type {string} */ this.name = "AbstractMethodError"; } } module.exports = AbstractMethodError; <|fim_p...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Sean Larkin @thelarkinn */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {import("../Dependency").DependencyLocation} DependencyLo<|fim_suffix|>cyLocation} */ this.loc = loc; } } module.exports =...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {import("../Module")} Module */ class BuildCycleError extends WebpackError { /** <|fim_suffix|> cycle */ constructor(modul...
fim
webpack/webpack
javascript
<|fim_suffix|> { super(); /** @type {string} */ this.name = "ChunkRenderError"; /** @type {Chunk} */ this.chunk = chunk; /** @type {string} */ this.file = file; /** @type {Error} */ this.error = error; /** @type {string} */ this.message = error.message; /** @type {string} */ this.details = er...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT Li<|fim_suffix|>ror.stack; } } /** @type {typeof CodeGenerationError} */ module.exports = CodeGenerationError; <|fim_middle|>cense http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {im...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use<|fim_suffix|>webpack/lib/errors/CommentCompilationWarning" ); module.exports = CommentCompilationWarning; <|fim_middle|> strict"; const makeSerializable = require("../util/makeSerializable"); const ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Maksim Nazarjev @acupofspirt *<|fim_suffix|>= ConcurrentCompilationError; <|fim_middle|>/ "use strict"; const WebpackError = require("./WebpackError"); class ConcurrentCompilationError extends WebpackError { constructor() { s...
fim
webpack/webpack
javascript
<|fim_suffix|>his.name = "EnvironmentNotSupportAsyncWarning"; /** @type {Module} */ this.module = module; } /** * Creates an instance of EnvironmentNotSupportAsyncWarning. * @param {Module} module module * @param {RuntimeTemplate} runtimeTemplate compilation * @param {Feature} feature feature */ stati...
fim
webpack/webpack
javascript
<|fim_suffix|> * Restores this instance from the provided deserializer context. * @param {ObjectDeserializerContext} context context */ deserialize(context) { const { read } = context; this.error = read(); this.hook = read(); super.deserialize(context); } } makeSerializable(HookWebpackError, "webpack/l...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const ModuleFactory = require("../ModuleFactory"); /** @typedef {import("../ModuleFactory").ModuleFactoryCallback} ModuleFactoryCallback */ /** @typedef {import("../ModuleFactory").ModuleFa...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.or<|fim_suffix|>olute path to the directory as context dependencies. The following invalid values have been reported: ${depsList.slice(0, 3).join("\n")}${ depsList.length > 3 ? "\n * and more ..." : "" }`); /** @type {string} */ this.name = "InvalidDependenc...
fim
webpack/webpack
javascript
<|fim_suffix|>ovided serializer context. * @param {ObjectSerializerContext} context context */ serialize({ write }) { write(this.systemError); write(this.raw); write(this.txt); } /** * Restores this instance from the provided deserializer context. * @param {ObjectDeserializerContext} context context ...
fim
webpack/webpack
javascript
<|fim_suffix|>eBuildError. * @param {string | ErrorWithHideStack} err error thrown * @param {{ from?: string | null }} info additional info */ constructor(err, { from = null } = {}) { let message = "Module build failed"; /** @type {undefined | string} */ let details; message += from ? ` (from ${from}):\...
fim
webpack/webpack
javascript
<|fim_suffix|>ndencyError"; this.details = err && !err.hideStack ? /** @type {string} */ (err.stack).split("\n").slice(1).join("\n") : undefined; this.module = module; this.loc = loc; /** error is not (de)serialized, so it might be undefined after deserialization */ this.error = err; if (err && ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { cleanUp } = require("../ErrorHelpers"); const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** @typedef {import("../serial...
fim
webpack/webpack
javascript
<|fim_suffix|>ackError"); /** @typedef {import("../Module")} Module */ class ModuleHashingError extends WebpackError { /** * Create a new ModuleHashingError * @param {Module} module related module * @param {Error} error Original error */ constructor(module, error) { super(); /** @type {string} */ thi...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {import("../Dependency").DependencyLocation} DependencyLocation */ /** @typedef {import("../Module")} Module */ const previousl...
fim
webpack/webpack
javascript
<|fim_suffix|>r context. * @param {ObjectSerializerContext} context context */ serialize(context) { const { write } = context; write(this.error); super.serialize(context); } /** * Restores this instance from the provided deserializer context. * @param {ObjectDeserializerContext} context context */...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./WebpackError"); /** @typedef {import("../Module")} Module */ class ModuleRestoreError extends WebpackError { /** * Creates an instance of ModuleRestoreEr...
fim
webpack/webpack
javascript
<|fim_suffix|>sage; } else { message += err; } } else { message += String(err); } super(message); /** @type {string} */ this.name = "ModuleStoreError"; this.details = /** @type {string | undefined} */ (details); this.module = module; this.error = err; } } /** @type {typeof ModuleStoreEr...
fim
webpack/webpack
javascript
<|fim_suffix|>nUp } = require("../ErrorHelpers"); const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */ /** @typedef {import("../serialization/Object...
fim
webpack/webpack
javascript
<|fim_suffix|>be undefined in next major version. ${description}` ); /** @type {string} */ this.name = "NodeStuffInWebError"; this.loc = loc; } } makeSerializable(NodeStuffInWebError, "webpack/lib/NodeStuffInWebError"); module.exports = NodeStuffInWebError; <|fim_prefix|>/* MIT License http://www.opensourc...
fim
webpack/webpack
javascript
<|fim_suffix|>onErrorEmittedError; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); cl<|fim_middle|>ass NonErrorEmittedError ext...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const makeSerializable = require("../util/makeSerializable"); const WebpackError = require("./WebpackError"); /** * Error raised when webpack encounters a resource URI scheme that no insta...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const makeSerializable = <|fim_suffix|>ype {string} */ this.name = "UnsupportedFeatureWarning"; /** @type {DependencyLocation} */ this.loc = loc; /** @type {boolean} */ this.hideSt...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Jarid Margolin @jaridmargolin */ "use strict"; const inspect = require("util").inspect.custom; const makeSerializable = require("../util/makeSerializable"); /** @typedef {import("../Chunk")} Chunk */ /** @typedef {import("../Dep...
fim
webpack/webpack
javascript
<|fim_suffix|>e should get it's own scope. * @returns {boolean} true, if the runtime module should get it's own scope */ shouldIsolate() { return false; } /** * Generates runtime code for this runtime module. * @returns {string | null} runtime code */ generate() { return `export { ${RuntimeGlobals.re...
fim
webpack/webpack
javascript
<|fim_suffix|>inue; } loadedChunks.add(chunk); processChunks.add(chunk); } const sourceWithDependentChunks = withDependentChunks( processChunks, chunkGraph, chunk ); if (sourceWithDependentChunks) { startupSource.add("\n"); startupSource.ad...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const ExportWebpackRequireRuntimeModule = require("./ExportWebpackRequireRuntimeModule"); const ModuleChunkLoadingRuntimeModule = require...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const { SyncWaterfallHook } = require("tapable"); const Compilation = require("../Compilation"); const RuntimeGlobals = require("../RuntimeGlobals"); const RuntimeModule = require("../RuntimeModule"); const Template = re...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {string | number} ModuleId */ /** @typedef {Record<string, unknown>} HotData */ /** @typedef {(data: HotData) => void} DisposeHandler */ /** @typedef {(outdatedDependencies: Mod...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opens<|fim_suffix|>ls.hmrInvalidateModuleHandlers ) .replace( /\$hmrDownloadUpdateHandlers\$/g, RuntimeGlobals.hmrDownloadUpdateHandlers ); } } module.exports = HotModuleReplacementRuntimeModule; <|fim_middle|>ource.org/licenses/mit-license.php Author Tobias ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {string | number} ModuleId */ /** @typedef {Record<string, unknown>} HotData */ /** @typedef {(data: HotData) => void} DisposeHandler */ /** @typedef {(outdatedDependencies: Mod...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Haijie Xie @hai-x */ "use strict"; const RuntimeGlobals = require("../RuntimeGlobals"); const Template = require("../Template"); /** * Generates javascript hmr. * @param {string} type unique identifier used for HMR runtime properties * @r...
fim
webpack/webpack
javascript
<|fim_suffix|>cific to lazy compilation proxy modules. * @typedef {object} KnownLazyCompilationProxyModuleBuildInfo * @property {boolean=} active whether the proxied module was active when built */ /** @typedef {BuildInfo & KnownLazyCompilationProxyModuleBuildInfo} LazyCompilationProxyModuleBuildInfo */ class Lazy...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("http").RequestListener} RequestListener */ /** @typedef {import("http").ServerOptions} HttpServerOptions */ /** @typedef {import("http").Server} HttpServer */ /** @type...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const { RawSource, ReplaceSource } = require("webpack-sources"); const ConcatenationScope = require("../ConcatenationScope"); const Generator = require("../Generator"); const { HTML_TYPE, JAVASCRIPT_TYPE, JAVASCRIPT_T...
fim
webpack/webpack
javascript
<|fim_suffix|>html/HtmlModule"); module.exports = HtmlModule; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php */ "use strict"; const NormalModule = require("../NormalModule"); const makeSerializable = require("../util/makeSerializable"); /** @typedef {import("../NormalModule").Norma...
fim
webpack/webpack
javascript
<|fim_suffix|> `[hash]` work in user-supplied templates. const { getUndoPath, makePathsRelative } = require("../util/identifier"); const { PUBLIC_PATH_AUTO: autoPlaceholder } = require("../util/publicPathPlaceholder"); // Sentinel-resolved content and its content hash depend only on ...
fim
webpack/webpack
javascript
<|fim_suffix|>g tags — captured here from the parsed attributes so // the template needn't re-parse the tag text with a regexp. let copyableAttrsText = ""; if (node.start >= 0) { for (const copyableName of COPYABLE_SIBLING_ATTRS) { const copyableAttr = findAttr(attrs, copyable...
fim
webpack/webpack
javascript
<|fim_suffix|>s.options.name ); if (!chunk) { throw new Error( `${PLUGIN_NAME}: Chunk with name '${this.options.name}"' was not found` ); } /** @type {Module[]} */ let chunkModules; if (this.options.order) { /** @type {ModuleComparator} */ let cmpFn; switch (this....
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const { compareChunksNatural } = require("../util/comparators"); const { assignDeterministicIds, getFullChunkName, getUsedChunkIds } = require("./IdHelpers"); /** @typedef {import("...
fim
webpack/webpack
javascript
<|fim_suffix|>lation.moduleGraph ), (module, id) => { const size = usedIds.size; usedIds.add(`${id}`); if (size === usedIds.size) { conflicts++; return false; } chunkGraph.setModuleId(module, id); return true; }, [10 ** maxLength], fixedLength...
fim
webpack/webpack
javascript
<|fim_suffix|>IdsPlugin.json"), this.options, { name: "Hashed Module Ids Plugin", baseDataPath: "options" }, (options) => require("../../schemas/plugins/ids/HashedModuleIdsPlugin.check")( options ) ); }); compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const createHash = require("../util/createHash"); const { makePathsRelative } = require("../util/identifier"); const numberHash = require("../util/numberHash"); /** @typedef {import("../Chu...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { compareChunksNatural } = require("../util/comparators"); const { assignAscendingChunkIds, assignNames, getLongChunkName, getShortChunkName, getUsedChunkIds } = require("./IdHelp...
fim
webpack/webpack
javascript
<|fim_suffix|>ule.exports = NamedModuleIdsPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { compareModulesByIdentifier } = require("../util/comparators"); const { assignAscendingModuleIds, assignNames, getLongModuleName, ...
fim
webpack/webpack
javascript
<|fim_suffix|>.hooks.chunkIds.tap(PLUGIN_NAME, (chunks) => { const chunkGraph = compilation.chunkGraph; const compareNatural = compareChunksNatural(chunkGraph); /** @type {Chunk[]} */ const chunksInNaturalOrder = [...chunks].sort(compareNatural); assignAscendingChunkIds(chunksInNaturalOrder, compila...
fim
webpack/webpack
javascript
<|fim_suffix|>NaturalOrder, compilation); }); }); } } module.exports = NaturalModuleIdsPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const { compareModulesByPreOrderIndexOrIdentifier } = require("../util/comparators...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { compareChunksNatural } = require("../util/comparators"); const { assignAscendingChunkIds } = require("./IdHelpers"); /** @typedef {import("../../declarations/plugins/ids/OccurrenceC...
fim
webpack/webpack
javascript