Mdx: Add support for namespace imports

Created on 1 May 2020  路  7Comments  路  Source: mdx-js/mdx

import * as Foo from './bar'
鉀碉笍 statureleased 馃悰 typbug 馃懚 semvepatch 馃拵 v2 馃梽 areinterface

All 7 comments

I can take a stab at it!

That'd be great @ankeetmaini ankeetmaini! Let us know if you have any questions!

I am curious if this is the same issue I'm having when using <Examples.ButtonGroup /> in my mdx files. It tells me it cannot find Examples.

Here's a reproduction of the issue if this helps the effort! https://github.com/apipkin/gastby-issue-1

@johno I am new to this codebase. Will this change belong in the mdx package or the babel plugin? Will try and get some early feedback by this weekend.

Great, it'll be in the babel plugin @ankeetmaini

@apipkin I have a WIP PR that fixes the bug you're referring to here: https://github.com/mdx-js/mdx/pull/953

@johno Awesome! Thanks!

Hi all! I鈥檓 going to close this as it landed on the main, the (now default) branch we鈥檙e using to gear up to the MDX@2 release.

The reason is so that it鈥檚 more clear which issues still need to be solved already and don鈥檛 require further work.

Expect another next release soonish, which might include it, or maybe it鈥檚 already released as a beta!

For more info, see https://github.com/mdx-js/mdx/issues/1041.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

slorber picture slorber  路  19Comments

pedronauck picture pedronauck  路  18Comments

khrome83 picture khrome83  路  14Comments

aress31 picture aress31  路  19Comments

brennj picture brennj  路  14Comments