{"id":25123,"library":"cordova-plugin-webpack-transpiler","title":"Cordova Webpack Transpiler Plugin","description":"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.","status":"deprecated","version":"0.3.1","language":"javascript","source_language":"en","source_url":"https://github.com/kerrishotts/cordova-plugin-webpack-transpiler","tags":["javascript","cordova","babel","transpile","typescript","webpack","es2015","es6","scss"],"install":[{"cmd":"npm install cordova-plugin-webpack-transpiler","lang":"bash","label":"npm"},{"cmd":"yarn add cordova-plugin-webpack-transpiler","lang":"bash","label":"yarn"},{"cmd":"pnpm add cordova-plugin-webpack-transpiler","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Webpack is the core bundler used by the plugin.","package":"webpack","optional":false},{"reason":"Required when using the Babel transpiler configuration.","package":"babel-core","optional":true},{"reason":"Required when using the TypeScript transpiler configuration.","package":"typescript","optional":true}],"imports":[],"quickstart":{"code":"","lang":"javascript","description":"No code import is needed; the plugin works via Cordova hooks."},"warnings":[{"fix":"Review scripts folder before installing and ensure you trust the code.","message":"Plugin is experimental and described as 'might blow your installation away' by the author.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use Node 5.x or later, but consider migrating to a maintained alternative.","message":"Node >= 5.0.0 required; may not work with modern Node versions due to outdated dependencies.","severity":"breaking","affected_versions":">=0.1.0"},{"fix":"Remove existing config files before adding/reconfiguring plugin.","message":"Configuration files (webpack.config.js) will not be overwritten if they already exist, leading to potential inconsistencies.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Always run the command again if plugin was auto-added during build.","message":"If plugin is discovered missing during prepare/build, the prepare phase yields incorrect results; must re-run the previous command.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Remove plugin, delete webpack.config.js, webpack.common.js, tsconfig.json, .babelrc, and node_modules, then re-add with new config variable.","message":"Transpiler configuration cannot be changed on-the-fly; must remove plugin and leftover files first.","severity":"gotcha","affected_versions":">=0.1.0"},{"fix":"Use a modern alternative like cordova-plugin-webpack or manual webpack integration.","message":"Plugin has not been updated since 2018; dependencies like webpack 1.x are severely outdated.","severity":"deprecated","affected_versions":">=0.3.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install webpack@1.x --save-dev' in the project root.","cause":"Webpack is not installed as a dependency.","error":"Error: Cannot find module 'webpack'"},{"fix":"Use Cordova CLI locally, not PhoneGap Build.","cause":"Unsupported platform (e.g., PhoneGap Build).","error":"Error: Plugin doesn't support this platform"},{"fix":"Check webpack.config.js and webpack.common.js exist and are valid.","cause":"Missing or incompatible webpack configuration.","error":"TypeError: Cannot read property 'apply' of undefined"},{"fix":"Re-run your previous cordova command after plugin installation.","cause":"Plugin was auto-added during prepare/build.","error":"Error: The 'prepare' phase has already been executed, results may be incorrect"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}