-1

Is there any way to use dynamic import('path') for an exported interface?

  • Can you give an example of what you've tried that hasn't worked please Domenico? Also it seems like this question is independent of using React? Anything that depends on an interface would be effected no? – AJP Jan 14 '20 at 16:32
  • My was just a question for better understanding code splitting. – Domenico Di Sarno Jan 15 '20 at 13:21

1 Answers1

1

There is no need to code splitting in interface because all typescript will be compiled into plain javascipt during build time.

Phuc Dang
  • 11
  • 1
  • Thanks. According to your answer I've found this: https://github.com/Microsoft/TypeScript/wiki/FAQ#why-are-imports-being-elided-in-my-emit – Domenico Di Sarno Jan 15 '20 at 13:19