We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
Could be same as #664...
The code here:
const options = babel.loadOptions ? babel.loadOptions({ filename }) : { plugins: [] }
...assumes, as per babel documentation:
...resulting in an options object where: opts.plugins is a full list of Plugin instances.
...resulting in an options object where:
opts.plugins is a full list of Plugin instances.
opts.plugins
However, if a file is ignored, the options are returned as null and the attempt to spread options.plugins:
null
options.plugins
plugins: [...extraPlugins, ...options.plugins]
... causes a failure:
Error: TypeError: [BABEL]: Cannot read properties of null (reading 'plugins')
Perhaps we can alter the ternary to be:
var options = babel.loadOptions?.({ filename: filename }) ?? { plugins: [] };
See #804 that last touched this.
To Reproduce Steps to reproduce the behavior:
.babelignore
ignore
Expected behavior
File is ignored for babel transpilation, danger processes it without issue.
Your Environment
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Could be same as #664...
The code here:
...assumes, as per babel documentation:
However, if a file is ignored, the options are returned as
null
and the attempt to spreadoptions.plugins
:... causes a failure:
Perhaps we can alter the ternary to be:
See #804 that last touched this.
To Reproduce
Steps to reproduce the behavior:
.babelignore
orignore
in configExpected behavior
File is ignored for babel transpilation, danger processes it without issue.
Your Environment
The text was updated successfully, but these errors were encountered: