A Webpack plugin that emulates Wrangler v1's `type = webpack` configuration, enabling seamless migration of Cloudflare Workers projects using Wrangler v1's webpack setup to modern tooling. Current version 0.0.8 is pre-stable with experimental support; released irregularly under the workers-sdk monorepo. Key differentiator: bridges the gap between legacy Wrangler v1 webpack configs and new Wrangler v2+ without manual reconfiguration, preserving build compatibility for workers relying on `type = webpack`.
npm install wranglerjs-compat-webpack-pluginNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage of the plugin in a webpack config to emulate Wrangler v1's type=webpack for Cloudflare Workers.
Pin exact version and test thoroughly before each update.
Migrate to Wrangler v2+ and adopt modern build tooling.
Ensure Webpack 5 compatibility by checking the plugin's peer dependency and using appropriate node polyfills if needed.
Run `npm install wranglerjs-compat-webpack-plugin --save-dev` and ensure import uses default export.
Use `const WranglerJSCompatWebpackPlugin = require('wranglerjs-compat-webpack-plugin').default;`Add `target: 'webworker'` to webpack configuration.