diff --git a/test/fixtures/transformation/optional-external-runtime/amd/actual.js b/test/fixtures/transformation/optional-external-runtime/amd/actual.js new file mode 100644 index 0000000000..09493dc9be --- /dev/null +++ b/test/fixtures/transformation/optional-external-runtime/amd/actual.js @@ -0,0 +1 @@ +import foo from "someModule"; diff --git a/test/fixtures/transformation/optional-external-runtime/amd/expected.js b/test/fixtures/transformation/optional-external-runtime/amd/expected.js new file mode 100644 index 0000000000..20e759af12 --- /dev/null +++ b/test/fixtures/transformation/optional-external-runtime/amd/expected.js @@ -0,0 +1,6 @@ +define(["exports", "6to5-runtime", "someModule"], function (exports, _to5Runtime2, _someModule) { + "use strict"; + + var _to5Runtime = _to5Runtime2; + var foo = _to5Runtime.interopRequire(_someModule); +}); diff --git a/test/fixtures/transformation/optional-external-runtime/amd/options.json b/test/fixtures/transformation/optional-external-runtime/amd/options.json new file mode 100644 index 0000000000..b76b119f33 --- /dev/null +++ b/test/fixtures/transformation/optional-external-runtime/amd/options.json @@ -0,0 +1,3 @@ +{ + "modules": "amd" +} diff --git a/test/fixtures/transformation/optional-external-runtime/basic/actual.js b/test/fixtures/transformation/optional-external-runtime/commonjs/actual.js similarity index 100% rename from test/fixtures/transformation/optional-external-runtime/basic/actual.js rename to test/fixtures/transformation/optional-external-runtime/commonjs/actual.js diff --git a/test/fixtures/transformation/optional-external-runtime/basic/expected.js b/test/fixtures/transformation/optional-external-runtime/commonjs/expected.js similarity index 100% rename from test/fixtures/transformation/optional-external-runtime/basic/expected.js rename to test/fixtures/transformation/optional-external-runtime/commonjs/expected.js