Add simple test for externalRuntime transformer
Just import a module namespace and see what happens.
This commit is contained in:
1
test/fixtures/transformation/optional-external-runtime/basic/actual.js
vendored
Normal file
1
test/fixtures/transformation/optional-external-runtime/basic/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
import * as foo from "someModule";
|
||||
5
test/fixtures/transformation/optional-external-runtime/basic/expected.js
vendored
Normal file
5
test/fixtures/transformation/optional-external-runtime/basic/expected.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var _to5Runtime = require("6to5-runtime");
|
||||
|
||||
var foo = _to5Runtime.interopRequireWildcard(require("someModule"));
|
||||
4
test/fixtures/transformation/optional-external-runtime/options.json
vendored
Normal file
4
test/fixtures/transformation/optional-external-runtime/options.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"runtime": "6to5-runtime",
|
||||
"optional": ["externalRuntime"]
|
||||
}
|
||||
Reference in New Issue
Block a user