A package to help you find out which of your node_modules aren't ES5 so you can add them to your Webpack/Rollup/Parcel transpilation steps.
ModulesChecker
's checkModules
return value.If you were using this package as a library and not just the CLI: This typeificaiton also changed the return value to match what was on the README when 2.0.0 was originally released, e.g. you should now use it as so:
const result = checkModules({
path: '', // Automatically find up package.json from cwd
checkAllNodeModules: true,
ignoreBabelAndWebpackPackages: true
})
/** Returns the regexp including all es6 modules */
const es6IncludeRegExp = buildIncludeRegexp(result.es6Modules)
/** Returns the regexp excluding all es6 modules */
const es6ExcludeRegexp = buildExcludeRegexp(result.es6Modules)
result
is now an object that contains 3 arrays, ignored
, es5Modules
, and es6Modules
.
--silent
option.exclude
regex..npmignore
.console.log
leftover from 1.2