Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@types/webpack-sources
Advanced tools
The @types/webpack-sources package provides TypeScript type definitions for the webpack-sources library, which is used in webpack to manage modules and their dependencies. This package helps developers by offering type safety and autocompletion features when working with webpack-sources in a TypeScript environment.
Type Definitions for Source Manipulation
Provides TypeScript types for creating and manipulating source code in webpack. This example shows how to create a new RawSource object and retrieve its content.
import { Source, RawSource } from 'webpack-sources';
const source: Source = new RawSource('const x = 123;');
console.log(source.source());
Type Definitions for Source Map Handling
Enables handling of source maps with proper type definitions. This example demonstrates creating a SourceMapSource object with a source map.
import { SourceMapSource } from 'webpack-sources';
const source: SourceMapSource = new SourceMapSource('const x = 123;', 'x.js', '{"version":3,"sources":["source.js"],"names":["x"],"mappings":"AAAA"}');
console.log(source.map());
Provides TypeScript definitions for the webpack environment variables. It is similar to @types/webpack-sources in that it aids in development within a TypeScript context but focuses more on environment configurations rather than source handling.
Offers TypeScript definitions for the HtmlWebpackPlugin that works with webpack. Similar to @types/webpack-sources, it enhances developer experience by providing types, but it specifically targets HTML file handling and injection.
npm install --save @types/webpack-sources
This package contains type definitions for webpack-sources (https://github.com/webpack/webpack-sources).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/webpack-sources.
These definitions were written by e-cloud (https://github.com/e-cloud), and Chris Eppstein (https://github.com/chriseppstein).
FAQs
TypeScript definitions for webpack-sources
The npm package @types/webpack-sources receives a total of 2,696,338 weekly downloads. As such, @types/webpack-sources popularity was classified as popular.
We found that @types/webpack-sources demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.