Skip to content

improve import export compat#1

Draft
nathan-muir wants to merge 2 commits into
mainfrom
nm-improve-import-export-compat
Draft

improve import export compat#1
nathan-muir wants to merge 2 commits into
mainfrom
nm-improve-import-export-compat

Conversation

@nathan-muir
Copy link
Copy Markdown

Some updates were made to improve the range of import and export statements supported.

It's still incomplete - it doesn't support ExportAllDeclaration (export * from './other').

However, the improvements do support some export ... from './other' statements, and import namespaces.

Rewrite `analyseSource` to detect all async functions exported by a file in a single pass.

Add support for `import * as Xyz from './...'`

Add support for `export { abc, def } from './...'`
Update `METEOR_ROOT_DIRECTORY` with your full path to project.

Then run with the same path (absolute!)

```
DEBUG="transform:print*" jscodeshift --ignore-pattern="**/node_modules/**" --ignore-patern="**/.meteor/**" --extensions js,jsx -t ./
transform-name-here.ts ~/Path/to/project/app
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant