A command line tool that detect JavaScript file can be bundled.
MIT License
Bot releases are visible (Hide)
https://github.com/azu/can-bundle-it/compare/v3.0.1...v3.0.2
https://github.com/azu/can-bundle-it/compare/v3.0.0...v3.0.1
Published by azu about 2 years ago
Require Node.js 14+
Full Changelog: https://github.com/azu/can-bundle-it/compare/v2.0.0...v3.0.0
Published by azu about 4 years ago
nodeFallback
optionfs
optionFor more details, see webpack changelog
Usage
$ can-bundle-it /path/to/file.js
Options
--verbose Show info/warning/error messages
Bundle Options
--target [String] Bundle target. Available: https://webpack.js.org/configuration/target/
--node-fallback [Boolean] enable Node.js modules fallback
webpack 5 disable Node.js polyfill by default. This options set node-libs-browser to resolve.fallback.
Examples
$ can-bundle-it lib/index.js
$ can-bundle-it lib/*.js --verbose
# Enable Node.js polyfill like "assert"
$ can-bundle-it lib/*.js --verbose --node-fallback