{"library":"rax-webpack-plugin","title":"rax-webpack-plugin","description":"Webpack plugin for the Rax framework, used to bundle Rax applications with support for multiple target formats (UMD, CMD, bundle, factory). Stable version 0.6.6, with later releases up to v1.2.x in the monorepo. Provides built-in module externalization, polyfill inclusion, and multi-platform output (web, weex, node, React Native). Differentiates from generic webpack plugins by offering Rax-specific features like framework comment injection and duplicate dependency checks. The package is part of the Alibaba Rax project and has a peer dependency on webpack 1–4.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install rax-webpack-plugin"],"cli":null},"imports":["const RaxPlugin = require('rax-webpack-plugin');","const { MultiplePlatform } = require('rax-webpack-plugin');","const { BuiltinModules } = require('rax-webpack-plugin');"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"const RaxPlugin = require('rax-webpack-plugin');\n\nmodule.exports = {\n  entry: './src/app.js',\n  output: {\n    filename: 'bundle.js',\n  },\n  plugins: [\n    new RaxPlugin({\n      target: 'umd',\n      moduleName: 'MyApp',\n      globalName: 'MyApp',\n      externalBuiltinModules: true,\n      includePolyfills: false,\n    }),\n  ],\n};","lang":"javascript","description":"Minimal webpack configuration using rax-webpack-plugin with UMD target and external built-in modules.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}