webpack-sources
- Version 3.3.3
- Published
- 138 kB
- No dependencies
- MIT license
Install
npm i webpack-sourcesyarn add webpack-sourcespnpm add webpack-sourcesOverview
Source code handling classes for webpack
Index
Classes
Interfaces
Type Aliases
Namespaces
Classes
class CachedSource
class CachedSource extends Source {}constructor
constructor(source: Source | (() => Source), cachedData?: CachedData);method getCachedData
getCachedData: () => CachedData;method original
original: () => Source;method originalLazy
originalLazy: () => Source | (() => Source);method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class CompatSource
class CompatSource extends Source {}constructor
constructor(sourceLike: SourceLike);method from
static from: (sourceLike: SourceLike) => Source;class ConcatSource
class ConcatSource extends Source {}constructor
constructor(...args: ConcatSourceChild[]);method add
add: (item: ConcatSourceChild) => void;method addAllSkipOptimizing
addAllSkipOptimizing: (items: ConcatSourceChild[]) => void;method getChildren
getChildren: () => Source[];method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class OriginalSource
class OriginalSource extends Source {}constructor
constructor(value: any, name: string);method getName
getName: () => string;method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, _onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class PrefixSource
class PrefixSource extends Source {}constructor
constructor(prefix: string, source: any);method getPrefix
getPrefix: () => string;method original
original: () => Source;method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class RawSource
class RawSource extends Source {}constructor
constructor(value: any, convertToString?: boolean);method isBuffer
isBuffer: () => boolean;method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class Replacement
class Replacement {}class ReplaceSource
class ReplaceSource extends Source {}constructor
constructor(source: Source, name?: string);property Replacement
static Replacement: typeof Replacement;method getName
getName: () => undefined | string;method getReplacements
getReplacements: () => Replacement[];method insert
insert: (pos: number, newValue: string, name?: string) => void;method original
original: () => Source;method replace
replace: (start: number, end: number, newValue: string, name?: string) => void;method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;class SizeOnlySource
class SizeOnlySource extends Source {}constructor
constructor(size: number);class Source
class Source {}constructor
constructor();method buffer
buffer: () => Buffer;method map
map: (options?: MapOptions) => null | RawSourceMap;method size
size: () => number;method source
source: () => SourceValue;method sourceAndMap
sourceAndMap: (options?: MapOptions) => SourceAndMap;method updateHash
updateHash: (hash: HashLike) => void;class SourceMapSource
class SourceMapSource extends Source {}constructor
constructor( value: any, name: string, sourceMap?: any, originalSource?: any, innerSourceMap?: any, removeOriginalSource?: boolean);method getArgsAsBuffers
getArgsAsBuffers: () => [ Buffer, string, Buffer, undefined | Buffer, undefined | Buffer, undefined | boolean];method streamChunks
streamChunks: ( options: StreamChunksOptions, onChunk: ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number ) => void, onSource: ( sourceIndex: number, source: null | string, sourceContent?: string ) => void, onName: (nameIndex: number, name: string) => void) => GeneratedSourceInfo;Interfaces
interface CachedData
interface CachedData {}interface GeneratedSourceInfo
interface GeneratedSourceInfo {}property generatedColumn
generatedColumn?: number;generated column
property generatedLine
generatedLine?: number;generated line
property source
source?: string;source
interface HashLike
interface HashLike {}interface MapOptions
interface MapOptions {}interface RawSourceMap
interface RawSourceMap {}property debugId
debugId?: string;debug id
property file
file: string;file
property ignoreList
ignoreList?: number[];ignore list
property mappings
mappings: string;mappings
property names
names: string[];names
property sourceRoot
sourceRoot?: string;source root
property sources
sources: string[];sources
property sourcesContent
sourcesContent?: string[];sources content
property version
version: number;version
interface SourceAndMap
interface SourceAndMap {}interface SourceLike
interface SourceLike {}property buffer
buffer?: () => Buffer;buffer
property map
map?: (options?: MapOptions) => null | RawSourceMap;map
property size
size?: () => number;size
property source
source: () => SourceValue;source
property sourceAndMap
sourceAndMap?: (options?: MapOptions) => SourceAndMap;source and map
property updateHash
updateHash?: (hash: HashLike) => void;hash updater
interface StreamChunksOptions
interface StreamChunksOptions {}property columns
columns?: boolean;property finalSource
finalSource?: boolean;property source
source?: boolean;Type Aliases
type ConcatSourceChild
type ConcatSourceChild = string | Source | SourceLike;type OnChunk
type OnChunk = ( chunk: undefined | string, generatedLine: number, generatedColumn: number, sourceIndex: number, originalLine: number, originalColumn: number, nameIndex: number) => void;type OnName
type OnName = (nameIndex: number, name: string) => void;type OnSource
type OnSource = ( sourceIndex: number, source: null | string, sourceContent?: string) => void;type SourceValue
type SourceValue = string | Buffer;Namespaces
namespace util
namespace util {}namespace util.stringBufferUtils
namespace util.stringBufferUtils {}function disableDualStringBufferCaching
disableDualStringBufferCaching: () => void;function enableDualStringBufferCaching
enableDualStringBufferCaching: () => void;function enterStringInterningRange
enterStringInterningRange: () => void;function exitStringInterningRange
exitStringInterningRange: () => void;function internString
internString: (str: string) => string;function isDualStringBufferCachingEnabled
isDualStringBufferCachingEnabled: () => boolean;Package Files (1)
Dependencies (0)
No dependencies.
Dev Dependencies (24)
- @eslint/js
- @eslint/markdown
- @stylistic/eslint-plugin
- @types/jest
- coveralls
- eslint
- eslint-config-prettier
- eslint-config-webpack
- eslint-plugin-import
- eslint-plugin-jest
- eslint-plugin-jsdoc
- eslint-plugin-n
- eslint-plugin-prettier
- eslint-plugin-unicorn
- globals
- istanbul
- jest
- prettier
- prettier-2
- source-map
- sourcemap-validator
- tooling
- typescript
- webpack
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/webpack-sources.
- Markdown[](https://www.jsdocs.io/package/webpack-sources)
- HTML<a href="https://www.jsdocs.io/package/webpack-sources"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 5527 ms. - Missing or incorrect documentation? Open an issue for this package.
