Webpack plugin for building Dojo 1.x AMD applications with webpack 5. Current stable version is 3.0.9, maintained on GitHub by OpenNTF. Released continuously with bug fixes and security updates. Differentiators: resolves Dojo AMD modules via webpack, supports synchronous and asynchronous require in packed code, embeds a stripped-down Dojo loader at ~1.5KB for runtime require resolution, handles dojo/text, dojo/has, dojo/i18n loaders, and respects loader config (baseUrl, paths, packages, map, aliases). Requires webpack >=5, tapable >=2, webpack-sources >=2. Alternative to using Dojo's own build system with webpack.
npm install dojo-webpack-pluginVerified import paths — ran on the pinned version, not inferred.
Shows how to configure the plugin in a webpack config with Dojo loader settings including baseUrl, packages, async, locales, and environment.
Upgrade to webpack 5 or use dojo-webpack-plugin@2.x from the v2x branch.
Ensure the Dojo toolkit is installed (npm install dojo) and referenced in loaderConfig.packages.
Use import syntax or require('dojo-webpack-plugin').default.Avoid using this option or handle undefined values explicitly in your code.
Use static require expressions or async require for dynamic module loading.
Review plugin options for webpack 5 compatibility; remove any outdated options.
npm install dojo and add { name: 'dojo', location: 'node_modules/dojo' } to loaderConfig.packages.Use const DojoWebpackPlugin = require('dojo-webpack-plugin').default;Verify Dojo is installed in node_modules/dojo or specify a custom loader path via the 'loader' option in the plugin config.
Upgrade to dojo-webpack-plugin >=3.0.3 which fixes this issue.