code_builder icon indicating copy to clipboard operation
code_builder copied to clipboard

Support emitting to a part file (`.g.dart`)

Open TekExplorer opened this issue 2 years ago • 3 comments

I have a generator that emits to the shared .g.dart file, but it doesn't appear to work if the source file has aliased imports.

Of course, i cant add any imports myself due to being a part file, so how do I make use of the pre-existing aliased imports?

I'm defining urls in Reference/refer as normal, but I cant seem to find an option that correctly uses the aliased imports without generating imports ourselves, as part files cant have imports.

TekExplorer avatar Dec 15 '23 05:12 TekExplorer