Registry / devops / cordova-plugin-webpack-transpiler

cordova-plugin-webpack-transpiler

JSON →
library0.3.1jsnpmunverified

A Cordova plugin that automatically transpiles ES2015+/TypeScript and SCSS files, then bundles them with Webpack during the build process. Version 0.3.1 is the latest, but the project is experimental and has had no releases since 2018. It supports multiple transpiler configurations (Babel, TypeScript) and two project structures (sibling and external). Key differentiators include seamless integration with Cordova lifecycle hooks, automatic configuration file generation, and support for both Babel and TypeScript transpilers. However, it is no longer maintained and may have compatibility issues with modern Cordova versions.

npm install cordova-plugin-webpack-transpiler
INSTALL
IMPORT
SIG · CORDOVA-PLUGIN-WEB
C
cordova-plugin-webpack-transpiler
devopsjavascriptv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

No code import is needed; the plugin works via Cordova hooks.

Debug
Known issues
gotchaPlugin is experimental and described as 'might blow your installation away' by the author.
fix
Review scripts folder before installing and ensure you trust the code.
affects: >=0.1.0
breakingNode >= 5.0.0 required; may not work with modern Node versions due to outdated dependencies.
fix
Use Node 5.x or later, but consider migrating to a maintained alternative.
affects: >=0.1.0
gotchaConfiguration files (webpack.config.js) will not be overwritten if they already exist, leading to potential inconsistencies.
fix
Remove existing config files before adding/reconfiguring plugin.
affects: >=0.1.0
gotchaIf plugin is discovered missing during prepare/build, the prepare phase yields incorrect results; must re-run the previous command.
fix
Always run the command again if plugin was auto-added during build.
affects: >=0.1.0
gotchaTranspiler configuration cannot be changed on-the-fly; must remove plugin and leftover files first.
fix
Remove plugin, delete webpack.config.js, webpack.common.js, tsconfig.json, .babelrc, and node_modules, then re-add with new config variable.
affects: >=0.1.0
deprecatedPlugin has not been updated since 2018; dependencies like webpack 1.x are severely outdated.
fix
Use a modern alternative like cordova-plugin-webpack or manual webpack integration.
affects: >=0.3.1
Errors
Common errors & fixes
Error: Cannot find module 'webpack'
Webpack is not installed as a dependency.
fix
Run 'npm install webpack@1.x --save-dev' in the project root.
Error: Plugin doesn't support this platform
Unsupported platform (e.g., PhoneGap Build).
fix
Use Cordova CLI locally, not PhoneGap Build.
TypeError: Cannot read property 'apply' of undefined
Missing or incompatible webpack configuration.
fix
Check webpack.config.js and webpack.common.js exist and are valid.
Error: The 'prepare' phase has already been executed, results may be incorrect
Plugin was auto-added during prepare/build.
fix
Re-run your previous cordova command after plugin installation.
Upgrade
Version history
0.3.1latest on npm
Audit
Dependencies
webpackrequiredWebpack is the core bundler used by the plugin.
babel-coreoptionalRequired when using the Babel transpiler configuration.
typescriptoptionalRequired when using the TypeScript transpiler configuration.
Agent activity
4 hits · last 30 days
node
4
Resources
cordova-plugin-webpack-transpiler — npm install cordova-plugin-webpack-transpiler · libregistry