Dschungelabenteuer / vite-plugin-entry-shaking

Mimic tree-shaking behaviour when importing code from an entry file in development mode.
MIT License
118 stars 8 forks source link

[Bug]: the default options of extensions does not match the documentation #50

Open Shunjun opened 2 weeks ago

Shunjun commented 2 weeks ago

What does the bug relate to?

Describe the bug

extensions in documentation is ['js', 'jsx', 'mjs', 'ts', 'tsx', 'mts'] but infact the default option is ['js', 'mjs', 'ts', 'mts']

To Reproduce

-

Vite version

5.2.7

Additional context

No response

Dschungelabenteuer commented 2 weeks ago

Damn, sorry about the unneeded confusion here. I'll either update the documentation to remove both unrelevant (t|j)sx extensions due to es-module-lexer's limitations, or track your #49 issue then actually add both extensions to the default ones as stated in the documentation. I'll let you know.