v3.0
版本发布时间: 2018-11-28 22:47:14
laravel-mix/laravel-mix最新发布版本:v6.0.0(2020-12-22 04:31:52)
New
Babel 7 support! As this new version of Babel includes major breaking changes, Mix, too, needs to bump from v2 to v3. We've taken care of most the changes, however, if your project pulls in extra Babel plugins that Mix does not provide out of the box, you'll need to update locally as well.
- The naming convention for official Babel plugins has changed. They are now scoped under the @babel namespace. As such, in your
package.json
file, change all occurrences of"babel-plugin-[name]": "6.x"
to"@babel/plugin-[name]": "7.x"
- If you've created a
.babelrc
file in your project, update all plugin name references. For example, update"plugins": ["babel-plugin-transform-object-rest-spread"]
to"plugins": ["@babel/plugin-proposal-object-rest-spread"]
Fixes
- Updated the rootPath to the working directory of the node process. #1719
- Fixed issues with minified css and purify. #1634
Onward
Next up, we'll be upgrading the Mix codebase to webpack 4. Stay tuned.