Webpack plugin (v0.2.7) that downloads TypeScript type definition tarballs generated by dts-loader from remote locations (e.g., a remote Module Federation entry). It integrates with webpack's build process to fetch type definitions files at build time and unzips them into a local directory. Key differentiator: enables type checking for remote modules in a Micro-Frontend setup where type definitions are served alongside remoteEntry.js. Release cadence is irregular; currently stable but low activity.
npm install webpack-remote-types-pluginVerified import paths — ran on the pinned version, not inferred.
Configures the plugin to fetch and extract type definitions for a remote 'app' from localhost:9000 into a './types' directory.
Always specify 'remoteFileName' explicitly to avoid breaking changes.
Replace 'filename' with 'remoteFileName' in your configuration.
Verify the URL pattern: e.g., if remote is 'app' and remoteFileName is '[name]-dts.tgz', the full URL becomes http://localhost:9000/app-dts.tgz (base URL taken from the remoteEntry URL).
Run 'npm install webpack-remote-types-plugin --save-dev' or add it to devDependencies.
Use 'const WebpackRemoteTypesPlugin = require('webpack-remote-types-plugin').default;'Check that the remote URL is accessible and that 'remoteFileName' matches the actual tarball filename on the server.