Registry / web-framework / wepy-compiler-babel

wepy-compiler-babel

JSON →
library1.5.3jsnpmunverified

Babel compiler plugin for the WePY framework (v1.5.3). This package integrates Babel into WePY's build pipeline, allowing ES2015+ syntax transpilation for WePY projects. It is specifically designed for WePY 1.x and offers configuration via `wepy.config.js`. Unlike generic Babel setups, this plugin seamlessly works with WePY's compilation system. Release cadence is low; the package has been stable with infrequent updates. Key differentiator: tailored for WePY's compiler lifecycle hooks.

npm install wepy-compiler-babel
INSTALL
IMPORT
SIG · WEPY-COMPILER-BABE
W
wepy-compiler-babel
web-frameworkjavascriptv1.5.3
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 18223 runs
build_error
glibc
node 18223 runs
build_error
Code
Verified usage

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

wepy-compiler-babel
// In wepy.config.js: module.exports = { compilers: { babel: {} } }
import wepyCompilerBabel from 'wepy-compiler-babel'
Not imported in source code; configured as a compiler plugin in wepy.config.js

Configures the babel compiler in a WePY project with ES2015 and Stage-1 presets plus transform plugins.

// Install: npm install wepy-compiler-babel --save-dev // wepy.config.js module.exports = { compilers: { babel: { presets: ['es2015', 'stage-1'], plugins: [ 'transform-export-extensions', 'syntax-export-extensions', 'transform-runtime' ] } } };
Debug
Known issues
deprecatedBabel presets 'es2015', 'stage-1' are deprecated in Babel 7+
fix
Use @babel/preset-env and @babel/plugin-transform-runtime, and update wepy-compiler-babel if compatible.
affects: >=1.0.0
gotchaThis package only works with WePY 1.x; not compatible with WePY 2.x (wepy-cli v2)
fix
For WePY 2.x, use wepy-compiler-babel version that supports @wepy/cli or use built-in babel support.
affects: >=1.0.0
breakingRequires Node.js 6+ due to Babel peer dependencies
fix
Upgrade Node.js to version 6 or later.
affects: >=1.0.0
Errors
Common errors & fixes
Error: Cannot find module 'babel-core'
Missing Babel core dependency (peer dependency not installed)
fix
npm install babel-core --save-dev
Error: Plugin/Preset files are not allowed to export objects, only functions.
Using a Babel 7 preset (e.g., @babel/preset-env) with Babel 6 core
fix
Use Babel 6 presets (e.g., 'es2015', 'stage-1') or upgrade to wepy-compiler-babel with Babel 7 support.
Upgrade
Version history
1.5.3latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
10
OpenAI (training)
1
Resources
wepy-compiler-babel — npm install wepy-compiler-babel · libregistry