Skip to content

fix: guess file extension from preset - #2117

Merged
JLHwung merged 1 commit into
babel:masterfrom
JLHwung:guess-file-extension-from-preset
Nov 11, 2019
Merged

JLHwung merged 1 commit into
babel:masterfrom
JLHwung:guess-file-extension-from-preset

Conversation

@JLHwung

@JLHwung JLHwung commented Oct 30, 2019

Copy link
Copy Markdown
Contributor

In this PR we guess the REPL file extension from the loaded presets. By doing so we could apply proper TypeScript transform when typescript preset is enabled.

Compared to #2019, this PR does not introduce filename option as we don't output error message that will point to filename configuration when parsing a TypeScript without transform enabled. Also we are not going to expose filename option in a such limited UI space.

Manually tested on local build.

Closes #2019
Fixes #1666

Comment thread js/repl/types.js Resolved
@netlify

netlify Bot commented Oct 30, 2019

Copy link
Copy Markdown

@JLHwung
JLHwung merged commit a2e2460 into babel:master Nov 11, 2019
@JLHwung
JLHwung deleted the guess-file-extension-from-preset branch November 11, 2019 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include file extension in REPL config options

3 participants