Registry / devops / webpack-core

webpack-core

JSON →
library0.6.9jsnpmunverified

The shared core of webpack and enhanced-require, encapsulating loader mechanics and SourceMap handling. Version 0.6.9 is the latest (no longer maintained; last release 2014). It is not intended as a standalone module but provides infrastructure for custom loaders and plugins. Webpack 1.x used this; later versions replaced it with webpack-sources and internal refactoring. Key differentiator: it was the foundational runtime for webpack's loader pipeline before being absorbed into webpack proper. Requires Node >=0.6.

npm install webpack-core
INSTALL
IMPORT
SIG · WEBPACK-CORE
W
webpack-core
devopsjavascriptv0.6.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SourceMapSource
import { SourceMapSource } from 'webpack-core'
const SourceMapSource = require('webpack-core').SourceMapSource;
CommonJS requires the full path: const SourceMapSource = require('webpack-core/lib/SourceMapSource');
RawSource
import { RawSource } from 'webpack-core'
const RawSource = require('webpack-core');
Use named import; default export does not exist.
ModuleFilenameHelpers
import { ModuleFilenameHelpers } from 'webpack-core'
import ModuleFilenameHelpers from 'webpack-core';
CommonJS: const ModuleFilenameHelpers = require('webpack-core/lib/ModuleFilenameHelpers');

Shows basic webpack usage (webpack-core is not used standalone).

const webpack = require('webpack'); const config = { entry: './src/index.js', output: { path: './dist', filename: 'bundle.js' }, module: { loaders: [{ test: /\.js$/, loader: 'babel' }] }, plugins: [] }; webpack(config, (err, stats) => { if (err) console.error(err); else console.log(stats.toString()); });
Debug
Known issues
deprecatedwebpack-core is no longer maintained. Use webpack >= 2.0 which includes its own core.
fix
Upgrade to webpack 2 or later.
affects: >=0.0.0
gotchaNot a standalone module; requires webpack context.
fix
Do not import directly; use webpack's public API.
affects: >=0.0.0
Errors
Common errors & fixes
Cannot find module 'webpack-core'
Package not installed; webpack-core is internal and not published separately.
fix
Install webpack (includes webpack-core internally).
Module not found: Error: Cannot resolve module 'webpack-core/lib/SourceMapSource'
Incorrect import path.
fix
Use: const SourceMapSource = require('webpack-core').SourceMapSource;
Upgrade
Version history
0.6.9latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
webpack-core — npm install webpack-core · libregistry