@@ -87,13 +87,10 @@ test("allows transform-runtime to be used with `useESModules: false` (the defaul
8787 `'use strict';
8888
8989var _createClass = require("@babel/runtime/helpers/createClass");
90-
9190var _classCallCheck = require("@babel/runtime/helpers/classCallCheck");
92-
9391var Foo = /*#__PURE__*/_createClass(function Foo() {
9492 _classCallCheck(this, Foo);
9593});
96-
9794module.exports = Foo;
9895`
9996 ) ;
@@ -112,11 +109,9 @@ test("allows transform-runtime to be used with `useESModules: true` and `format:
112109 code ,
113110 `import _createClass from "@babel/runtime/helpers/esm/createClass";
114111import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
115-
116112var Foo = /*#__PURE__*/_createClass(function Foo() {
117113 _classCallCheck(this, Foo);
118114});
119-
120115export { Foo as default };
121116`
122117 ) ;
@@ -227,14 +222,13 @@ test('transforms all chunks in a code-splitting setup', async (t) => {
227222 t . deepEqual (
228223 output . map ( ( { code } ) => code ) ,
229224 [
230- `import('./dep-0fdca0d5 .js').then(function (result) {
225+ `import('./dep-20aaf50b .js').then(function (result) {
231226 return console.log(result);
232227});
233228` ,
234229 `var dep = function dep() {
235230 return 42;
236231};
237-
238232export { dep as default };
239233`
240234 ]
@@ -269,7 +263,6 @@ console.log(getResult(value));
269263 `var getResult = function getResult(value) {
270264 return value + 1;
271265};
272-
273266export { getResult as default };
274267`
275268 ]
0 commit comments