boi-transpiler
raw JSON → 0.0.15 verified Fri May 01 auth: no javascript deprecated
Transpile boi configuration files into webpack configuration and dependencies. Current version 0.0.15 (pre-release). No clear release cadence; appears to be a companion tool for the boi build system. Differentiator: acts as a bridge between boi's own config format and webpack, enabling webpack-based builds without direct webpack configuration.
Common errors
error Cannot find module 'boi-transpiler' ↓
cause Package not installed or not in node_modules.
fix
Run
npm install boi-transpiler or yarn add boi-transpiler. error TypeError: Cannot read property 'entry' of undefined ↓
cause Passed an undefined or malformed boi config object.
fix
Ensure the config object has required properties like
entry. error Module build failed: Error: Boi config must be an object ↓
cause Non-object passed to `transpile()`.
fix
Pass a valid JavaScript object representing the boi configuration.
Warnings
deprecated Package is based on boi, which is unmaintained since 2018. Use direct webpack configuration instead. ↓
fix Migrate to plain webpack config.
gotcha The transpiled webpack config may be incomplete or incompatible with modern webpack versions (e.g., webpack 5). ↓
fix Manually verify the output and add missing properties.
breaking No breaking changes documented due to pre-release status; API may change at any time. ↓
fix Pin exact version and test thoroughly.
Install
npm install boi-transpiler yarn add boi-transpiler pnpm add boi-transpiler Imports
- transpile wrong
const transpile = require('boi-transpiler').transpile;correctimport { transpile } from 'boi-transpiler' - default wrong
const boiTranspiler = require('boi-transpiler');correctimport boiTranspiler from 'boi-transpiler' - BoiConfig wrong
import BoiConfig from 'boi-transpiler/BoiConfig';correctimport { BoiConfig } from 'boi-transpiler'
Quickstart
import { transpile } from 'boi-transpiler';
const boiConfig = {
entry: './src/index.js',
output: {
path: './dist',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.js$/, loader: 'babel-loader' }
]
}
};
const webpackConfig = transpile(boiConfig);
console.log(webpackConfig);