Add --keep-file-extension option to babel-cli (#6221)
* Add --keep-module-extension option to babel-cli * Rename keep-module-extension option to keep-file-extension; Change option to preserve all file extensions
This commit is contained in:
committed by
Justin Ridgewell
parent
4daf11528c
commit
8742012b5e
@@ -0,0 +1 @@
|
||||
arr.map(x => x / DIVIDER);
|
||||
@@ -0,0 +1 @@
|
||||
arr.map(x => x * MULTIPLIER);
|
||||
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --keep-file-extension/options.json
vendored
Normal file
3
packages/babel-cli/test/fixtures/babel/dir --out-dir --keep-file-extension/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"args": ["src", "--out-dir", "lib", "--keep-file-extension"]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x / DIVIDER;
|
||||
});
|
||||
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
arr.map(function (x) {
|
||||
return x * MULTIPLIER;
|
||||
});
|
||||
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --keep-file-extension/stdout.txt
vendored
Normal file
2
packages/babel-cli/test/fixtures/babel/dir --out-dir --keep-file-extension/stdout.txt
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
src/bar.mjs -> lib/bar.mjs
|
||||
src/foo.js -> lib/foo.js
|
||||
Reference in New Issue
Block a user