This repository was archived by the owner on Aug 7, 2021. It is now read-only.
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
Babel integration is not complete #1043
Open
Description
Environment
- CLI: 6.0.3
- Cross-platform modules:
- Android Runtime: 28
- iOS Runtime:
- Plugin(s): @babel/cli, @babel/core, @babel/preset-env, @babel/preset-react, @babel/register, babel-loader, nativescript-dev-babel, copy-webpack-plugin, webpack-cli
- Node.js: 12.10.0
Describe the bug
The Babel integration is not complete, it's not possible to use ES6 for webpack.config.js file. In case, if I do webpack.config.babel.js with ES6, the tns build android command returns error, however webpack --dev.android runs successfully.
To Reproduce
create sample Nativescript 6.x application. Execute $ tns install babel
, rename webpack.config.js to webpack.config.babel.js use ES6 javascript for the configuration file. Try to execute $ tns build android
.
Expected behavior
the project builds successfully, webpack.config.babel.js is automatically engaged.