Registry / devops / webcompiler

webcompiler

JSON →
library7.0.1jsnpmunverified

v7.0.1 (latest, Apr 2017) — Deprecated tool that wraps Babel, ESLint, Webpack, and SASS pipeline into a zero-config CLI. Pre-configured for ES6+JSX+Flow+SASS with built-in live reload, caching, and production minification/gzip. Last released 2017; no updates for 6+ years. Superseded by create-react-app, Vite, and modern webpack-based starters. Requires Node >=6.10.2.

npm install webcompiler
INSTALL
IMPORT
SIG · WEBCOMPILER
W
webcompiler
devopsjavascriptv7.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

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

default import
import webcompiler from 'webcompiler'
const webcompiler = require('webcompiler')
CJS require works but preferred import is ES module style.
compile
import webcompiler from 'webcompiler'; webcompiler.compile()
const { compile } = require('webcompiler')
compile is a method on the default export, not a named export.
DevServer
import DevServer from 'webcompiler/lib/dev-server'
import { DevServer } from 'webcompiler'
DevServer is a separate internal module, not exported from main index.

Compile an ES6 module to a browser bundle using webcompiler's CLI or programmatic API with zero config.

// Install: npm i webcompiler --save-dev // Create src/index.js: const greet = (name) => `Hello, ${name}!`; export default greet; // Run CLI: npx webcompiler --entry src/index.js --output dist/bundle.js // Or programmatically: import webcompiler from 'webcompiler'; const result = webcompiler.compile({ entry: './src/index.js', output: './dist/bundle.js', production: process.env.NODE_ENV === 'production' }); result.then(() => console.log('Done')).catch(console.error);
webcompiler --version
Debug
Known issues
deprecatedLibrary is no longer maintained; use modern alternatives like Vite, webpack 5, or create-react-app.
fix
Migrate to Vite or webpack 5 with appropriate loaders.
affects: >=0.0.0
breakingv7 upgraded to Babel 6, breaking any config relying on Babel 5 APIs.
fix
Update .babelrc to Babel 6 presets (e.g., babel-preset-env) instead of Babel 5.
affects: >=7.0.0
gotchaReact.PropTypes deprecated in favor of prop-types package; webcompiler v7.0.1 fixed this but older versions will break.
fix
Update to >=7.0.1 or install prop-types and import explicit PropTypes.
affects: <7.0.1
deprecatedUses webpack 2 internally; tree shaking not fully functional until webpack 2.3 and react-hot-loader 3.
fix
Upgrade to >=6.6.0 or use webpack 3+ with sideEffects flag.
affects: >=6.0.0 <6.6.0
gotchaRequires Watchman installed for watch mode and DevServer; not needed for one-off builds.
fix
Install Watchman via package manager (brew install watchman on macOS) or skip watch features.
affects: >=0.0.0
deprecatedFlow integration relies on Flow <0.38; newer Flow versions break due to Interface file incompatibility.
fix
Pin Flow to 0.38 or disable typecheck (webcompiler config typecheck: false).
affects: >=6.8.4
Errors
Common errors & fixes
Error: Cannot find module 'webpack'
webcompiler expects webpack as a peer dependency; not installed automatically.
fix
npm install webpack@2 --save-dev (or the version corresponding to your webcompiler release)
RULES_MISSING: 'no-invalid-this' rule not found
ESLint config references removed rules; webcompiler bundles an old ESLint preset.
fix
npm install eslint-plugin-import --save-dev or use webcompiler without linting (config lint: false)
TypeError: webcompiler.compile is not a function
Importing as named export instead of default export.
fix
Use import webcompiler from 'webcompiler' (default) instead of import { compile } from 'webcompiler'.
Upgrade
Version history
7.0.1latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
OpenAI (training)
1
Resources
webcompiler — npm install webcompiler · libregistry