Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dev-scripts): Simplify resolve.extensions
There doesn't appear to be any reason not to include the '.ts' in resolve.extensions even for pure-JS plugins, but it is _necessary_ to include it in TS plugins. Since the default value for resolve.extensions is ['.js', '.json', '.wasm'] set it to ['.ts', '.js', '.json', '.wasm'] which gives priority to TS, then JS, then the other default extensions. Also add a helpful comment explaining the purpose of resolve.fallback.
- Loading branch information