-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use stderr/stdout, and add a validateLogs test option
- Loading branch information
1 parent
69af38f
commit f8d0a46
Showing
20 changed files
with
47 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...s/babel-plugin-proposal-dynamic-import/test/fixtures/systemjs/missing-plugin/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"validateLogs": true, | ||
"plugins": [ | ||
"syntax-dynamic-import", | ||
"transform-modules-systemjs", | ||
|
1 change: 0 additions & 1 deletion
1
.../systemjs/missing-plugin/expected-log.txt → ...xtures/systemjs/missing-plugin/stderr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
>>>>>> [console.warn] <<<<<< | ||
WARNING: Dynamic import() transformation must be enabled using the | ||
@babel/plugin-proposal-dynamic-import plugin. Babel 8 will | ||
no longer transform import() without using that plugin. |
Empty file.
1 change: 1 addition & 0 deletions
1
...-preset-env/test/fixtures/dynamic-import/auto-esm-supported-import-supported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"validateLogs": true, | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsStaticESM": true, | ||
|
1 change: 1 addition & 0 deletions
1
...reset-env/test/fixtures/dynamic-import/auto-esm-supported-import-unsupported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"validateLogs": true, | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsStaticESM": true, | ||
|
1 change: 0 additions & 1 deletion
1
...namic-import/modules-umd/expected-log.txt → ...m-supported-import-unsupported/stderr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
>>>>>> [console.warn] <<<<<< | ||
Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled. |
Empty file.
1 change: 1 addition & 0 deletions
1
...set-env/test/fixtures/dynamic-import/auto-esm-unsupported-import-unsupported/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"validateLogs": true, | ||
"caller": { | ||
"name": "test-fixture", | ||
"supportsStaticESM": false, | ||
|
Empty file removed
0
packages/babel-preset-env/test/fixtures/dynamic-import/modules-amd/expected-log.txt
Empty file.
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/dynamic-import/modules-amd/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [["env", { "modules": "amd" }]] | ||
} |
Empty file removed
0
packages/babel-preset-env/test/fixtures/dynamic-import/modules-cjs/expected-log.txt
Empty file.
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/dynamic-import/modules-cjs/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [["env", { "modules": "cjs" }]] | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/dynamic-import/modules-false/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [["env", { "modules": false }]] | ||
} |
Empty file.
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/dynamic-import/modules-systemjs/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [["env", { "modules": "systemjs" }]] | ||
} |
1 change: 1 addition & 0 deletions
1
packages/babel-preset-env/test/fixtures/dynamic-import/modules-umd/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"validateLogs": true, | ||
"presets": [["env", { "modules": "umd" }]] | ||
} |
1 change: 0 additions & 1 deletion
1
...orted-import-unsupported/expected-log.txt → ...res/dynamic-import/modules-umd/stderr.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
>>>>>> [console.warn] <<<<<< | ||
Dynamic import can only be supported when transforming ES modules to AMD, CommonJS or SystemJS. Only the parser plugin will be enabled. |