Registry / devops / transform-loader

transform-loader

JSON →
library0.2.4jsnpmunverified

Webpack loader that allows using browserify transforms in webpack builds. Version 0.2.4 is the latest stable release (last updated 2017). It enables reuse of existing browserify transform modules (like brfs, coffeeify) within webpack's loader pipeline. Key differentiator: bridges browserify ecosystem transforms to webpack without manual porting. Supports webpack 1.x and 2.x but is not actively maintained.

npm install transform-loader
INSTALL
IMPORT
SIG · TRANSFORM-LOADER
T
transform-loader
devopsjavascriptv0.2.4
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.

default import
import transformLoader from 'transform-loader'
const transformLoader = require('transform-loader')
Loader is typically used in webpack config as string reference, not directly imported in code.
cacheable variant
import 'transform-loader/cacheable'
import 'transform-loader?cacheable'
Use the subpath '/cacheable' to enable caching, not a query parameter.
Webpack config usage
module.exports = { module: { rules: [{ test: /\.js$/, loader: 'transform-loader?brfs' }] } }
Loader is configured via webpack config with query string; no direct import needed.

Configures webpack to use the brfs browserify transform via transform-loader on all JavaScript files.

// webpack.config.js module.exports = { context: __dirname, entry: './index.js', module: { loaders: [ { test: /\.js$/, loader: 'transform-loader?brfs' } ] } };
Debug
Known issues
deprecatedtransform-loader uses deprecated loader API in webpack 2+
fix
For webpack 2+, use 'enforce: post' in rule or migrate to webpack-native loaders.
affects: >=2.0.0
gotchaCacheable variant must be imported as subpath '/cacheable' not as query parameter
fix
Use 'transform-loader/cacheable?brfs' instead of 'transform-loader?brfs&cacheable'.
affects: all
breakingWebpack 5 removed LoaderOptionsPlugin, breaking configs using plugin transform index
fix
Define transforms directly in rule options: { loader: 'transform-loader', options: { transforms: [...] } } or avoid using plugin-based transforms.
affects: >=5.0.0
gotchaApplied to all files in default config, causing performance degradation in watch mode
fix
Use 'transform-loader/cacheable' variant or narrow test pattern to specific files.
affects: all
deprecatedProject last updated in 2017; no webpack 5 support
fix
Consider using alternative loaders like brfs directly or migrate to webpack-native solutions.
affects: >0.2.4
Errors
Common errors & fixes
Module not found: Error: Can't resolve 'transform-loader/cacheable'
Incorrect subpath import or missing npm install
fix
Ensure 'transform-loader' is installed: npm install transform-loader --save-dev
Error: DeprecationWarning: loaderUtils.getOptions is deprecated
Using transform-loader with webpack 4+ which deprecates old loader utilities
fix
Upgrade to webpack 5 and consider using alternatives like 'brfs' loader directly
TypeError: this.getOptions is not a function
transform-loader not compatible with webpack 5's loader API
fix
Use webpack 4 or migrate to a maintained loader like 'brfs-loader'
Upgrade
Version history
0.2.4latest on npm
Audit
Dependencies
webpackrequiredPeer dependency required as a loader plugin for webpack
Agent activity
8 hits · last 30 days
node
8
Resources
transform-loader — npm install transform-loader · libregistry