Macross Bundler is a set of managed Webpack configuration scripts designed to simplify the build process for web applications. It abstracts away complex Webpack setups, providing a streamlined command-line interface for common tasks like starting a development server and building for production. The current stable version is 0.1.24, indicating it's still in early development, and API changes can be expected. Its primary differentiator lies in providing a highly opinionated and managed configuration experience, similar to tools like Create React App but with custom extensions, notably including specific configurations for CDN prefixes and backend proxies, which may suggest an origin or strong influence from enterprise environments like Rakuten. It requires Node.js >= 16 and has peer dependencies on Webpack >= 5 and React >= 16.
npm install macross-bundlerVerified import paths — ran on the pinned version, not inferred.
Demonstrates initializing a new project using `create-macross-app`, configuring `macross.config.js`, installing dependencies, and starting the development server.
Always pin to exact patch versions (`~0.1.x`) and thoroughly review release notes for each update. Be prepared for manual migration of configurations or scripts.
Ensure `macross.config.js` uses `export default`. If your project's `package.json` `type` is set to `commonjs`, or if you are in a legacy Node.js environment, you might need to rename the config file to `macross.config.mjs`.
Ensure your project explicitly installs compatible versions of `webpack` and `react`. Use `npm install webpack@^5 react@^16` to satisfy these requirements.
Review all configuration options in `macross.config.js` carefully. Customize `cdnPrefixUrl`, `backendProxy`, and other environment-specific settings to match your project's infrastructure, or remove them if not needed.
Ensure `macross-bundler` is installed as a `devDependency` (`npm install --save-dev macross-bundler`), and that your `package.json` scripts call `macross-bundler` directly or via `npx` (e.g., `"start": "macross-bundler start"`). Always run `npm install` after cloning a project.
Explicitly install the required peer dependencies: `npm install webpack@^5 react@^16`.
Ensure your `macross.config.js` file uses `export default`. If your `package.json` does not have `"type": "module"`, consider renaming `macross.config.js` to `macross.config.mjs` to force ESM interpretation.