question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[addon-dev] Allow TS files in publicEntrypoints / appReexports

See original GitHub issue

For addons authoring their code in TS (or soon gjs/gts), currently is not possible to use @embroider/addon-dev’s publicEntrypoints or appReexports methods.

We cannot use them because the dist files will end up with the same extension as the input.

In glimmer-apollo, I ended up doing a simple replace of .ts with .js.

https://github.com/josemarluedke/glimmer-apollo/blob/main/packages/glimmer-apollo/rollup.config.js#L7-L23

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
NullVoxPopulicommented, Feb 2, 2022

I think the solution in #1099 is solid~ish, but I need to figure out a peerDep issue – https://github.com/embroider-build/embroider/issues/1062 I think I’m getting two copies of xstate in the consuming app, and it’s only revealing itself because of component-manager’s reliance on object identity. 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is the resolution for these types of errors: <addon ...
My package's files / entrypoints are only an index.ts and registration.ts -- the index.ts doesn't do anything with xstate, it's only a single...
Read more >
Module parse failed: Unexpected token Emberjs
It's a component addon with the co-location layout and typescript in ... is when I disable the declaration of ts files in the...
Read more >
Migrating an Ember addon to the next-gen v2 format
This blog post walks you through the migration of an existing addon to Embroider's new v2 format.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found