-
Notifications
You must be signed in to change notification settings - Fork 97
migrate to isImportOrExportDeclaration #260
base: master
Are you sure you want to change the base?
migrate to isImportOrExportDeclaration #260
Conversation
related to #259 |
babel-plugin-lodash/package.json Line 45 in 7d2342a
Can you also bump |
Bumped. Thanks for the heads up. |
@cube-dan Can you re-run |
I tried the
I've attached the package-lock.json(.txt) file in case you want to take a look at the mess that |
@cube-dan In that case let's keep this PR simple and let maintainers decide whether they should upgrade the lock file format. If we don't want to bump the import { isImportDeclaration, isExportDeclaration } from '@babel/types'
if (isImportDeclaration(node) || isExportDeclaration(node)) { ... } |
@cube-dan Do you time to take on these changes? I'd be happy to pick this up if you don't. |
@Pearce-Ropion which changes are you referring to? |
|
@Pearce-Ropion I'm not sure where that change is supposed to be made; feel free to jump in. Would it simplify this PR to back out of the change made to the package.json file? |
According to #260 (comment) you can avoid using To ensure you can run tests without polluting the |
Babel has deprecated isModuleDeclaration(); see here.
NOTE: isModuleDeclaration() is now a shim for isImportOrExportDeclaration() and has no purpose other than to generate a TON of these messages:
Thanks for considering this PR.