text
stringlengths
14
100k
source
stringclasses
1 value
repo
stringclasses
810 values
language
stringclasses
13 values
<|fim_suffix|>xports = IgnoreWarningsPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./Compiler")} Compiler */ /** @typedef {import("./Compilation")} Compilation */ /** @typedef {(warning: Error, compilation...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const { ConcatSource } = require("webpack-sources"); const makeSerializable = require("./util/makeSerializable"); /** @typedef {import("webpack-sources").Source} Source */ /** @typedef...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Sergey Melyukov @smelukov */ "use strict"; const { JAVASCRIPT_MODULE_TYPE_AUTO, JAVASCRIPT_MODULE_TYPE_DYNAMIC, JAVASCRIPT_MODULE_TYPE_ESM } = require("./ModuleTypeConstants"); const { getInnerGraphUtils } = require("./optimiz...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const EnableLibraryPlugin = require("./library/EnableLibraryPlugin"); /** @typedef {import("../declarations/WebpackOptions").AuxiliaryComment} AuxiliaryComment */ /** @typedef {import("../d...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ModuleFi<|fim_suffix|>getCompilationHooks(compilation).loader.tap( PLUGIN_NAME, (context, module) => { const resource = module.resource; if (!resource) return; c...
fim
webpack/webpack
javascript
<|fim_suffix|>et; } ); }); } } module.exports = LoaderTargetPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const NormalModule = require("./NormalModule"); /** @typedef {import("./Compiler")} Compiler */ const PLUGIN_...
fim
webpack/webpack
javascript
<|fim_suffix|>n this._outputOptions; }, "MainTemplate.outputOptions is deprecated (use Compilation.outputOptions instead)", "DEP_WEBPACK_MAIN_TEMPLATE_OUTPUT_OPTIONS" ) }); module.exports = MainTemplate; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sok...
fim
webpack/webpack
javascript
<|fim_suffix|> */ const imports = []; for (const chunk of entrypoint.chunks) { for (const file of chunk.files) { const name = getName(chunk); imports.push(name ? `${name}.${extname(file)}` : file); } } /** @type {ManifestEntrypoint} */ const item =...
fim
webpack/webpack
javascript
<|fim_suffix|>{ chunkGraph: ChunkGraph.getChunkGraphForModule( this, "Module.updateHash", "DEP_WEBPACK_MODULE_UPDATE_HASH" ), runtime: undefined } ) { const { chunkGraph, runtime } = context; hash.update(chunkGraph.getModuleGraphHash(this, runtime)); if (this.presentationalDependencies !==...
fim
webpack/webpack
javascript
<|fim_suffix|> module.exports = ModuleFactory; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("../declarations/WebpackOptions").ResolveOptions} ResolveOptions */ /** @typedef {import("./Dependency")} Dependency */ /*...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const NormalModule = require("./NormalModule"); const { DEFAULTS } = require("./config/defaults"); const createHash = require("./util/createHash"); const memoize = require("./util/memoize");...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const util = require("util"); const ExportsInfo = require("./ExportsInfo"); const ModuleGraphConnection = require("./ModuleGraphConnection"); const HarmonyImportDependency = require("./depen...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./Dependency")} Dependency */ /** @typedef {import("./Dependency").GetConditionFn} GetConditionFn */ /** @typedef {import("./Module")} Module */ /** @typedef {import("....
fim
webpack/webpack
javascript
<|fim_suffix|>se if (!verbose) { const cachedSource = cacheEntry.full.get(moduleSource); if (cachedSource !== undefined) return cachedSource; } } const source = new ConcatSource(); let header = cacheEntry.header; if (header === undefined) { header = this.generateHeader(modu...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php<|fim_suffix|> Some old plugins use `require("webpack/lib/ModuleNotFoundError")`, in webpack@6 developer should migrate to `compiler.webpack.ModuleNotFoundError` module.exports = require("./errors/ModuleNotFoundError"); <|fim_middle|> Auth...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; class ModuleProfile { constructor() { this.startTime = Date.now(); this.factoryStartTime = 0; this.factoryEndTime = 0; this.factory = 0; this.factoryParallelismFactor = 0; thi...
fim
webpack/webpack
javascript
<|fim_suffix|>exports.WEBASSEMBLY_TYPES = WEBASSEMBLY_TYPES; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Alexander Akait @alexander-akait */ "use strict"; /** * @type {Readonly<"javascript">} */ const JAVASCRIPT_TYPE = "javascript"; /** * @type {Readonly<"runtime">} *...
fim
webpack/webpack
javascript
<|fim_suffix|> getJavascriptModulesPlugin() .getCompilationHooks(compilation) .renderModuleContent.tap( options, (source, module, renderContext) => fn( source, module, renderContext, renderContext.dependencyTemplates ) ); ...
fim
webpack/webpack
javascript
<|fim_suffix|>YPE_INLINE; module.exports.ASSET_MODULE_TYPE_RAW_DATA_URL = ASSET_MODULE_TYPE_RAW_DATA_URL; module.exports.ASSET_MODULE_TYPE_RESOURCE = ASSET_MODULE_TYPE_RESOURCE; module.exports.ASSET_MODULE_TYPE_SOURCE = ASSET_MODULE_TYPE_SOURCE; /** @type {CssModuleTypes[]} */ module.exports.CSS_MODULES = [ CSS_MODULE...
fim
webpack/webpack
javascript
<|fim_suffix|>loop-func compiler.hooks.done.tap(CLASS_NAME, (stats) => { if (!compilerDone) { compilerDone = true; doneCompilers++; } compilerStats[compilerIndex] = stats; if (doneCompilers === this.compilers.length) { this.hooks.done.call( new MultiStats(/** @type {Stats[]} */ (...
fim
webpack/webpack
javascript
<|fim_suffix|>ame}:\n${indent(str, " ")}` : str; }); return results.filter(Boolean).join("\n\n"); } } module.exports = MultiStats; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const identifierUtils = require("./util/identifier")...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const asyncLib = require("neo-async"); /** @typedef {<|fim_suffix|>Compiler} compiler the compiler */ constructor(watchings, compiler) { this.watchings = watchings; this.compiler = c...
fim
webpack/webpack
javascript
<|fim_suffix|>n) => { if (compilation.getStats().hasErrors()) return false; }); compiler.hooks.compilation.tap(PLUGIN_NAME, (compilation) => { compilation.hooks.shouldRecord.tap(PLUGIN_NAME, () => { if (compilation.getStats().hasErrors()) return false; }); }); } } module.exports = NoEmitOnErrorsPlu...
fim
webpack/webpack
javascript
<|fim_suffix|>y === usingProperty.id) { const { importMetaName, environment, module } = compilation.outputOptions; if ( environment.importMetaDirnameAndFilename || (compiler.platform.web === null && compiler.platform.node === null && module) ) { ...
fim
webpack/webpack
javascript
<|fim_suffix|>readResource: new HookMap( () => new AsyncSeriesBailHook(["loaderContext"]) ), processResult: new SyncWaterfallHook(["result", "module"]), needBuild: new AsyncSeriesBailHook(["module", "context"]) }; compilationHooksMap.set( compilation, /** @type {NormalModuleCompilationHoo...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { getContext } = require("loader-runner"); const asyncLib = require("neo-async"); const { AsyncSeriesBailHook, HookMap, SyncBailHook, SyncHook, SyncWaterfallHook } = require("tapa...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { dirname, join } = require("./util/fs"); /** @typedef {import("./Compiler")} Compiler */ /** @typedef {import("./NormalModuleFactory").ResolveData} ResolveData */ /** @typedef {impor...
fim
webpack/webpack
javascript
<|fim_suffix|>rts = NullFactory; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ModuleFactory = require("./ModuleFactory"); /** @typedef {import("./ModuleFactory").ModuleFactoryCallback} ModuleFactoryCallback */ /** @typedef {impo...
fim
webpack/webpack
javascript
<|fim_suffix|> -10; module.exports.STAGE_DEFAULT = 0; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; mod<|fim_middle|>ule.exports.STAGE_ADVANCED = 10; module.exports.STAGE_BASIC =<|endoftext|>
fim
webpack/webpack
javascript
<|fim_suffix|> * Returns options object. * @param {WebpackOptions} options options object * @param {Compiler} compiler compiler object * @param {WebpackOptionsInterception=} interception intercepted options * @returns {WebpackOptions} options object */ process(options, compiler, interception) { return op...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./config/defaults").WebpackOptionsNormalizedWithDefaults} WebpackOptions */ /** @typedef {import("./Compilation")} Compilation */ /** @typedef {import("./NormalModule")...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Authors Ivan Kopeykin @vankop */ "use strict"; /** @typedef {import("./Compiler")} C<|fim_suffix|>ties>} */ this.platform = platform; } /** * Applies the plugin by registering its hooks on the compiler. * @param {Compiler} comp...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const PrefetchDependency = require("./dependencies/Prefetc<|fim_suffix|>ext or request if context is not set * @param {string=} request request */ constructor(context, request) { if (...
fim
webpack/webpack
javascript
<|fim_suffix|>AME, (loaders) => { for (const loader of loaders) { if ( loader.type !== "module" && !requiredLoaders.has(loader.loader) ) { requiredLoaders.add(loader.loader); currentLoader = loader.loader; update(); require(loader.loader); ...
fim
webpack/webpack
javascript
<|fim_suffix|>".") ? `__webpack_provided_${name.replace(/\./g, "_dot_")}` : name; const dep = new ProvidedDependency( request[0], nameIdentifier, request.slice(1), /** @type {Range} */ (expr.range) ); dep.loc = /** @type {DependencyLocation} */ (expr....
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_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { compareNumbers } = require("./util/comparators"); const identifierUtils = require("./util/identifier"); /** @typedef {import("./Chunk")} Chunk */ /** @typedef {import("./Compiler")}...
fim
webpack/webpack
javascript
<|fim_suffix|>e to the configured directory * when one is provided. * @param {string | undefined | null} request the request to shorten * @returns {string | undefined | null} the shortened request */ shorten(request) { if (!request) { return request; } return this.contextify(request); } } module.exp...
fim
webpack/webpack
javascript
<|fim_suffix|>ches = this.cache.get(type); if (!typedCaches) { typedCaches = { direct: new WeakMap(), stringified: new Map() }; this.cache.set(type, typedCaches); } const cachedResolver = typedCaches.direct.get(resolveOptions); if (cachedResolver) { return cachedResolver; } const ident =...
fim
webpack/webpack
javascript
<|fim_suffix|>ly after)"; /** * startup signal from runtime but only used to add sync logic before the startup */ module.exports.startupOnlyBefore = "__webpack_require__.x (only before)"; /** * the System polyfill object */ module.exports.system = "__webpack_require__.System"; /** * the System.register context ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { RawSource } = require("webpack-sources"); const OriginalSource = require("webpack-sources").OriginalSource; const Module = require("./Module"); const { JAVASCRIPT_TYPES, RUNTIME_TY...
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 RuntimeRequirementsDependency = require("./dependencies/RuntimeRequirementsDependency"); const JavascriptModulesPlugin = require("./...
fim
webpack/webpack
javascript
<|fim_suffix|>For example: // import * as ns from "cjs"; cjs.prop; if (exportsType === "default-only") { // in the strictest case, it is a runtime error (e.g. NodeJS behavior of CJS-ESM interop). return `/* non-default import from non-esm module */undefined${propertyAccess( exportName, 1 ...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./ModuleFactory").ModuleFactoryCallback} Mo<|fim_suffix|> */ /** @typedef {import("./ModuleFactory").ModuleFactoryCreateData} ModuleFactoryCreateData */ /** @typedef {i...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http:<|fim_suffix|> require("./EntryPlugin"); <|fim_middle|>//www.opensource.org/licenses/mit-license.php Author Sean Larkin @thelarkinn */ "use strict"; module.exports =<|endoftext|>
fim
webpack/webpack
javascript
<|fim_suffix|>IN_NAME, (module) => { module.useSimpleSourceMap = true; }); } JavascriptModulesPlugin.getCompilationHooks(compilation).useSourceMap.tap( PLUGIN_NAME, () => true ); } } module.exports = SourceMapDevToolModuleOptionsPlugin; <|fim_prefix|>/* MIT License http://w<|fim_middle|>ww.opensou...
fim
webpack/webpack
javascript
<|fim_suffix|>matically and never pollutes the compilation object. const originalSources = getOriginalSourceRegistry(compilation); compilation.hooks.processAssets.tapAsync( { name: PLUGIN_NAME, stage: Compilation.PROCESS_ASSETS_STAGE_DEV_TOOLING, additionalAssets: true }, (assets, call...
fim
webpack/webpack
javascript
<|fim_suffix|> class Stats { /** * Creates an instance of Stats. * @param {Compilation} compilation webpack compilation */ constructor(compilation) { this.compilation = compilation; } get hash() { return this.compilation.hash; } get startTime() { return this.compilation.startTime; } get endTime(...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { ConcatSource, PrefixSource } = require("webpack-sources"); const { WEBPACK_MODULE_TYPE_RUNTIME } = require("./ModuleTypeConstants"); const RuntimeGlobals = require("./RuntimeGlobals"...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Jason Anderson @diurnalist */ "use strict"; const { basename, extname } = require("path"); const util = require("util"); const Chunk = require("./Chunk"); const Module = require("./Module"); const { parseResource } = require("./u...
fim
webpack/webpack
javascript
<|fim_suffix|>& firstNode.expression.type === "Literal" && firstNode.expression.value === "use strict" ) { // Remove "use strict" expression. It will be added later by the renderer again. // This is necessary in order to not break the strict mode when webpack prepends code. // @...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("./Compiler")} Compiler */ /** @typedef {import("./Module")} Module */ /** @typedef {import("./ModuleGraph")} ModuleGraph */ /** @typedef {import("./NormalModule")} NormalModule */ c...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT <|fim_suffix|>value '${value}' for option '${option}' is deprecated. ` + `Use '${suggestion}' instead.`; } } module.exports = WarnDeprecatedOptionPlugin; <|fim_middle|>License http://www.opensource.org/licenses/mit-license.php Author Florent Cailhol @ooflorent */ "use strict"; const Webpac...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const WebpackError = require("./errors/WebpackError"); class NoModeWarning extends WebpackError { constructor() { super(); /** @type {string} */ this.name = "NoModeWarning"; this.message = "...
fim
webpack/webpack
javascript
<|fim_suffix|> (options) => require("../schemas/plugins/WatchIgnorePlugin.check")(options) ); }); compiler.hooks.afterEnvironment.tap(PLUGIN_NAME, () => { compiler.watchFileSystem = new IgnoringWatchFileSystem( /** @type {WatchFileSystem} */ (compiler.watchFileSystem), this.options.paths )...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Stats = require("./Stats"); /** @typedef {import("../declarations/WebpackOptions").WatchOptions} WatchOptions */ /** @typedef {import("./Compilation")} Compilation */ /** @typedef {im...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-lice<|fim_suffix|> developer should migrate to `compiler.webpack.WebpackError` module.exports = require("./errors/WebpackError"); <|fim_middle|>nse.php Author Jarid Margolin @jaridmargolin */ "use strict"; // TODO remove in webpack 6 // Some old pl...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Ivan Kopeykin @vankop */ "use strict"; const { JAVASCRIPT_MODULE_TYPE_AUTO, JAVASCRIPT_MODULE_TYPE_DYNAMIC, JAVASCRIPT_MODULE_TYPE_ESM } = require("./ModuleTypeConstants"); const WebpackIsIncludedDependency = require("./depend...
fim
webpack/webpack
javascript
<|fim_suffix|>rmonyModulesPlugin({ deferImport: options.experiments.deferImport }).apply(compiler); if (options.amd !== false) { const AMDPlugin = require("./dependencies/AMDPlugin"); const RequireJsStuffPlugin = require("./dependencies/RequireJsStuffPlugin"); new AMDPlugin(options.amd || {}).apply(com...
fim
webpack/webpack
javascript
<|fim_suffix|> /** @typedef {import("./config/normalization").WebpackOptionsNormalized} WebpackOptionsNormalized */ class WebpackOptionsDefaulter { /** * Returns normalized webpack options. * @param {WebpackOptions} options webpack options * @returns {WebpackOptionsNormalized} normalized webpack options */ p...
fim
webpack/webpack
javascript
<|fim_suffix|>tions) { if (!connection.originModule) { continue; } sourceTypes.add(connection.originModule.type.split("/")[0]); } if (sourceTypes.size > 0) { if ( sourceTypes.has(JAVASCRIPT_TYPE) && (sourceTypes.has(CSS_TYPE) || sourceTypes.has(HTML_TYPE)) ) { return JAVASCRIPT_AND_...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Alexander Akait @alexander-akait */ "use strict"; const Parser = require("../Parser"); /** @typedef {import("../Module").BuildInfo} BuildInfo */ /** @typedef {import("../Module").BuildMeta} BuildMeta */ /** @typedef {import("../...
fim
webpack/webpack
javascript
<|fim_suffix|>esource" to create a resource file instead of a DataUrl' ); } } } if (typeof mimeType !== "string") { throw new Error( "DataUrl can't be generated automatically. " + 'Either pass a mimetype via "generator.mimetype" or ' + 'use type: "asset/resource" to create a resource f...
fim
webpack/webpack
javascript
<|fim_suffix|>on").AssetInfo} AssetInfo */ /** @typedef {import("../NormalModule").NormalModuleBuildInfo} NormalModuleBuildInfo */ /** @typedef {import("../NormalModule").NormalModuleCreateData} NormalModuleCreateData */ /** * Defines the build info properties specific to asset modules. * @typedef {object} KnownAsse...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Yuta Hiroto @hiroppy */ "use strict"; const { ASSET_MODULE_TYPE, ASSET_MODULE_TYPE_BYTES, ASSET_MODULE_TYPE_INLINE, ASSET_MODULE_TYPE_RESOURCE, ASSET_MODULE_TYPE_SOURCE } = require("../ModuleTypeConstants"); const { compareM...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Yuta Hiroto @hiroppy */ "use strict"; co<|fim_suffix|> { buildInfo.dataUrl = this.dataUrlCondition(source, { filename: /** @type {string} */ (state.module.getResource()), module: state.module }); } else if (typeof...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Sergey Melyukov @smelukov */ "use strict"; const { RawSource } = require("webpack-sources"); const ConcatenationScope = require("../ConcatenationScope"); const Generator = require("../Generator"); const { ASSET_URL_TYPE, ASSET_URL_TYPES, CS...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Yuta Hiroto @hiroppy */ "use strict"; const Parser = require("../Parser"); /** @typedef {import("../Module").BuildInfo} BuildInfo */ /** @t<|fim_suffix|>tends Parser { /** * Parses the provided source and updates the parser s...
fim
webpack/webpack
javascript
<|fim_suffix|>{NeedBuildContext} context context info * @param {NeedBuildCallback} callback callback function, returns true, if the module needs a rebuild * @returns {void} */ needBuild(context, callback) { return callback(null, !this.buildMeta); } /** * Builds the module using the provided compilation co...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Haijie Xie @hai-x */ "use strict"; const HarmonyImportDependency = require("../dependencies/HarmonyImportDependency"); /** @typedef {import("../ModuleGraph")} ModuleGraph */ /** @typedef {import("../Module")} Module */ /** @typ...
fim
webpack/webpack
javascript
<|fim_suffix|>_);" ); for (const [index, importVar] of importVars.entries()) { templateInput.push( `${importVar} = __webpack_async_dependencies_result__[${index}];` ); } } else { const importVarsStr = importVars.join(", "); templateInput.push( `([${importVarsStr}] = __webpack_async_de...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const HarmonyImportDependency = require("../dependencies/HarmonyImportDependency"); /** @typedef {import("../Compiler")} Compiler */ /<|fim_suffix|>dules) { if (module.buildMeta && mod...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const ModuleGraphConnection = require("./ModuleGraphConnection"); const AsyncDependencyToInitialChunkError = require("./errors/AsyncDependencyToInitialChunkError"); const { getEntryRuntime, ...
fim
webpack/webpack
javascript
<|fim_suffix|>_NAME, (compilation) => { compilation.buildDependencies.addAll(this.buildDependencies); }); } } module.exports = AddBuildDependenciesPlugin; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("../Com...
fim
webpack/webpack
javascript
<|fim_suffix|>ablePaths.add(immutablePath); } for (const unmanagedPath of this.unmanagedPaths) { compiler.unmanagedPaths.add(unmanagedPath); } } } module.exports = AddManagedPathsPlugin; <|fim_prefix|>/* MIT Li<|fim_middle|>cense http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sok...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Cache = require("../Cache"); const ProgressPlugin = require("../ProgressPlugin"); /** @typedef {import("../Compiler")} Compiler */ /** @typedef {import("./PackFileCacheStrategy")} Pac...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Cache = require("../Cache"); /** @typedef {import("../Cache").Data} Data */ /** @typedef {import("../Cache").Etag} Etag */ /** @typedef {import("../Compiler")} Compiler */ class Memo...
fim
webpack/webpack
javascript
/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Cache = require("../Cache"); /** @typedef {import("../Cache").Data} Data */ /** @typedef {import("../Cache").Etag} Etag */ /** @typedef {import("../Compiler")} Compiler */ /** * Defines the memor...
fim
webpack/webpack
javascript
<|fim_suffix|>is.logger, profile: this.profile }) .then(() => { for (const dep of newBuildDependencies) { this.buildDependencies.add(dep); } this.newBuildDependencies.clear(); this.logger.timeEnd("store pack"); const stats = pack.getContentStats(); th...
fim
webpack/webpack
javascript
<|fim_suffix|>dAllToSet( /** @type {Dependencies} */ (resolveContext.missingDependencies), snapshot.getMissingIterable() ); } if (resolveContext.fileDependencies) { addAllToSet( /** @type {Dependencies} */ (resolveCont...
fim
webpack/webpack
javascript
<|fim_suffix|>; const newHash = new LazyHashedEtag(obj, hashFunction); innerMap.set(obj, newHash); return newHash; }; module.exports = getter; <|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const { DEFAULTS } = require("../config/def...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; /** @typedef {import("../Cache").Etag} Etag */ class MergedEtag { /** * Creates an instance of MergedEtag. * @param {Etag} a first * @param {Etag} b second */ constructor(a, b) { ...
fim
webpack/webpack
javascript
<|fim_suffix|>kethrough: useColor ? init(9, 29) : String, black: useColor ? init(30, 39) : String, red: useColor ? init(31, 39) : String, green: useColor ? init(32, 39) : String, yellow: useColor ? init(33, 39) : String, blue: useColor ? init(34, 39) : String, magenta: useColor ? init(35, 39) : String, cyan: use...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Sergey Melyukov @smelukov */ "use strict"; const path = require("path"); const browserslist = require("browserslist"); /** @typedef {import("./target").ApiTargetProperties} ApiTargetProperties */ /** @typedef {import("./target")...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const fs = require("fs"); const path = require("path"); const { CSS_TYPE, JAVASCRIPT_TYPE, UNKNOWN_TYPE } = require("../ModuleSourceTypeConstants"); const { ASSET_MODULE_TYPE, ASSET_MOD...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const util = require("util"); /** @typedef {import("../../declarations/WebpackOptions").CacheOptionsNormalized} CacheOptions */ /** @typedef {import("../../declarations/WebpackOptions").Ent...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const memoize = require("../util/memoize"); const getBrowserslistTargetHandler = memoize(() => require("./browserslistTargetHandler") ); /** * Gets default target. * @param {string} con...
fim
webpack/webpack
javascript
<|fim_suffix|>{ return `container-entry-${this.name}`; } get type() { return "container entry"; } get category() { return "esm"; } } makeSerializable( ContainerEntryDependency, "webpack/lib/container/ContainerEntryDependency" ); module.exports = ContainerEntryDependency; <|fim_prefix|>/* MIT License h...
fim
webpack/webpack
javascript
<|fim_suffix|>e {string} */ let str; if (modules.some((m) => !m.module)) { str = runtimeTemplate.throwMissingModuleErrorBlock({ request: modules.map((m) => m.request).join(", ") }); } else { str = `return ${runtimeTemplate.blockPromise({ block, message: "", chunkGraph, run...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/license<|fim_suffix|>Data */ /** @typedef {import("./ContainerEntryDependency")} ContainerEntryDependency */ module.exports = class ContainerEntryModuleFactory extends ModuleFactory { /** * Processes the provided data. * @param {ModuleFactoryCreateData} data...
fim
webpack/webpack
javascript
<|fim_suffix|>* @param {string} request request to module */ constructor(exposedName, request) { super(request); /** @type {string} */ this.exposedName = exposedName; } get type() { return "container exposed"; } get category() { return "esm"; } /** * Returns an identifier to merge equal requests...
fim
webpack/webpack
javascript
<|fim_suffix|>date( () => require("../../schemas/plugins/container/ContainerPlugin.json"), this.options, { name: "Container Plugin", baseDataPath: "options" }, (options) => require("../../schemas/plugins/container/ContainerPlugin.check")( options ) ); }); const libr...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra and Zackary Jackson @ScriptedAlchemy */ "use strict"; const ExternalModule = require("../ExternalModule"); const ExternalsPlugin = require("../ExternalsPlugin"); const RuntimeGlobals = require("../RuntimeGlo...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sok<|fim_suffix|> { return `fallback ${this.requests.join(" ")}`; } get type() { return "fallback"; } get category() { return "esm"; } /** * Serializes this instance into the provided serializer con...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Tobias Koppers @sokra */ "use strict"; const Modul<|fim_suffix|>pendency" ); module.exports = FallbackItemDependency; <|fim_middle|>eDependency = require("../dependencies/ModuleDependency"); const makeSerializable = require("../...
fim
webpack/webpack
javascript
<|fim_suffix|>rns {SourceTypes} types available (do not mutate) */ getSourceTypes() { return JAVASCRIPT_TYPES; } /** * Generates code and runtime requirements for this module. * @param {CodeGenerationContext} context context for code generation * @returns {CodeGenerationResult} result */ codeGeneration...
fim
webpack/webpack
javascript
<|fim_suffix|>ory").ModuleFactoryCreateData} ModuleFactoryCreateData */ /** @typedef {import("./FallbackDependency")} FallbackDependency */ module.exports = class FallbackModuleFactory extends ModuleFactory { /** * Processes the provided data. * @param {ModuleFactoryCreateData} data data object * @param {Module...
fim
webpack/webpack
javascript
<|fim_prefix|>/* MIT License http://www.opensource.org/licenses/mit-license.php Author Zackary Jackson @ScriptedAlchemy */ "use strict"; const AsyncDependenciesBlock = require("../AsyncDependenciesBlock"); const ExternalModule = require("../ExternalModule"); const { STAGE_ADVANCED } = require("../OptimizationStages...
fim
webpack/webpack
javascript
<|fim_suffix|>ler} compiler the compiler instance * @returns {void} */ apply(compiler) { compiler.hooks.validate.tap(PLUGIN_NAME, () => { compiler.validate( () => require("../../schemas/plugins/container/ModuleFederationPlugin.json"), this.options, { name: "Module Federation Plugin", ...
fim
webpack/webpack
javascript
<|fim_suffix|> RUNTIME_REQUIREMENTS = new Set([RuntimeGlobals.module]); /** @typedef {string[]} ExternalRequests */ class RemoteModule extends Module { /** * Creates an instance of RemoteModule. * @param {string} request request string * @param {ExternalRequests} externalRequests list of external requests to c...
fim
webpack/webpack
javascript