diff --git a/.babelrc.js b/babel.config.js similarity index 100% rename from .babelrc.js rename to babel.config.js diff --git a/build/files-checker.php b/build/files-checker.php index a6a71e149eb..ed9ff9ac5ef 100644 --- a/build/files-checker.php +++ b/build/files-checker.php @@ -22,7 +22,6 @@ $expectedFiles = [ '.', '..', - '.babelrc.js', '.codecov.yml', '.drone.yml', '.eslintrc.js', @@ -46,6 +45,7 @@ $expectedFiles = [ 'autotest-external.sh', 'autotest-js.sh', 'autotest.sh', + 'babel.config.js', 'build', 'CHANGELOG.md', 'CODE_OF_CONDUCT.md', diff --git a/webpack.common.js b/webpack.common.js index 53c5d5e6769..4a8cf1d2a0f 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -81,7 +81,10 @@ module.exports = [] { test: /\.js$/, loader: 'babel-loader', - exclude: /node_modules/ + // automatically detect necessary packages to + // transpile in the node_modules folder + exclude: /node_modules(?!(\/|\\)(p-finally|p-limit|p-locate|p-queue|p-timeout|p-try)(\/|\\))/ + }, { test: /\.(png|jpg|gif)$/,