Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1918,19 +1918,19 @@ exports[`fixtures build inline-source-map with microbundle 2`] = `3`;

exports[`fixtures build inline-source-map with microbundle 3`] = `
"var r=function(){try{var r=arguments;return Promise.resolve([].slice.call(r).reduce(function(r,e){return r+e},0))}catch(r){return Promise.reject(r)}};export default function(){try{var e=arguments,t=[].slice.call(e);return Promise.resolve(r.apply(void 0,t)).then(function(e){return Promise.resolve(r.apply(void 0,t)).then(function(r){return[e,r]})})}catch(r){return Promise.reject(r)}}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuZXNtLm1qcyIsInNvdXJjZXMiOlsiLi4vc3JjL3R3by5qcyIsIi4uL3NyYy9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgYXN5bmMgZnVuY3Rpb24gdHdvKC4uLmFyZ3MpIHtcblx0cmV0dXJuIGFyZ3MucmVkdWNlKCh0b3RhbCwgdmFsdWUpID0+IHRvdGFsICsgdmFsdWUsIDApO1xufVxuIiwiaW1wb3J0IHsgdHdvIH0gZnJvbSAnLi90d28nO1xuXG5leHBvcnQgZGVmYXVsdCBhc3luYyBmdW5jdGlvbiguLi5hcmdzKSB7XG5cdHJldHVybiBbYXdhaXQgdHdvKC4uLmFyZ3MpLCBhd2FpdCB0d28oLi4uYXJncyldO1xufVxuIl0sIm5hbWVzIjpbInR3byIsInJlZHVjZSIsInRvdGFsIiwidmFsdWUiLCJhcmdzIl0sIm1hcHBpbmdzIjoiSUFBc0JBLGlDQUNyQix1QkFBTyxpQkFBS0MsT0FBTyxTQUFDQyxFQUFPQyxVQUFVRCxFQUFRQyxHQUFPLElBRHJELGtGQ0VpQ0MsMENBQ2xCSixlQUFPSSw0Q0FBYUosZUFBT0kscUJBQXpDLE1BQU8sVUFEUiJ9
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuZXNtLm1qcyIsInNvdXJjZXMiOlsiLi4vc3JjL3R3by5qcyIsIi4uL3NyYy9pbmRleC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgYXN5bmMgZnVuY3Rpb24gdHdvKC4uLmFyZ3MpIHtcblx0cmV0dXJuIGFyZ3MucmVkdWNlKCh0b3RhbCwgdmFsdWUpID0+IHRvdGFsICsgdmFsdWUsIDApO1xufVxuIiwiaW1wb3J0IHsgdHdvIH0gZnJvbSAnLi90d28nO1xuXG5leHBvcnQgZGVmYXVsdCBhc3luYyBmdW5jdGlvbiAoLi4uYXJncykge1xuXHRyZXR1cm4gW2F3YWl0IHR3byguLi5hcmdzKSwgYXdhaXQgdHdvKC4uLmFyZ3MpXTtcbn1cbiJdLCJuYW1lcyI6WyJ0d28iLCJyZWR1Y2UiLCJ0b3RhbCIsInZhbHVlIiwiYXJncyJdLCJtYXBwaW5ncyI6IklBQXNCQSxpQ0FDckIsdUJBQU8saUJBQUtDLE9BQU8sU0FBQ0MsRUFBT0MsVUFBVUQsRUFBUUMsR0FBTyxJQURyRCxrRkNFa0NDLDBDQUNuQkosZUFBT0ksNENBQWFKLGVBQU9JLHFCQUF6QyxNQUFPLFVBRFIifQ==
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The formatting change in the test source caused these source maps to change

"
`;

exports[`fixtures build inline-source-map with microbundle 4`] = `
"var r=function(){try{var r=arguments;return Promise.resolve([].slice.call(r).reduce(function(r,e){return r+e},0))}catch(r){return Promise.reject(r)}};module.exports=function(){try{var e=arguments,t=[].slice.call(e);return Promise.resolve(r.apply(void 0,t)).then(function(e){return Promise.resolve(r.apply(void 0,t)).then(function(r){return[e,r]})})}catch(r){return Promise.reject(r)}};
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy90d28uanMiLCIuLi9zcmMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHR3byguLi5hcmdzKSB7XG5cdHJldHVybiBhcmdzLnJlZHVjZSgodG90YWwsIHZhbHVlKSA9PiB0b3RhbCArIHZhbHVlLCAwKTtcbn1cbiIsImltcG9ydCB7IHR3byB9IGZyb20gJy4vdHdvJztcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24oLi4uYXJncykge1xuXHRyZXR1cm4gW2F3YWl0IHR3byguLi5hcmdzKSwgYXdhaXQgdHdvKC4uLmFyZ3MpXTtcbn1cbiJdLCJuYW1lcyI6WyJ0d28iLCJyZWR1Y2UiLCJ0b3RhbCIsInZhbHVlIiwiYXJncyJdLCJtYXBwaW5ncyI6IklBQXNCQSxpQ0FDckIsdUJBQU8saUJBQUtDLE9BQU8sU0FBQ0MsRUFBT0MsVUFBVUQsRUFBUUMsR0FBTyxJQURyRCxrRkNFaUNDLDBDQUNsQkosZUFBT0ksNENBQWFKLGVBQU9JLHFCQUF6QyxNQUFPLFVBRFIifQ==
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAuanMiLCJzb3VyY2VzIjpbIi4uL3NyYy90d28uanMiLCIuLi9zcmMvaW5kZXguanMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGFzeW5jIGZ1bmN0aW9uIHR3byguLi5hcmdzKSB7XG5cdHJldHVybiBhcmdzLnJlZHVjZSgodG90YWwsIHZhbHVlKSA9PiB0b3RhbCArIHZhbHVlLCAwKTtcbn1cbiIsImltcG9ydCB7IHR3byB9IGZyb20gJy4vdHdvJztcblxuZXhwb3J0IGRlZmF1bHQgYXN5bmMgZnVuY3Rpb24gKC4uLmFyZ3MpIHtcblx0cmV0dXJuIFthd2FpdCB0d28oLi4uYXJncyksIGF3YWl0IHR3byguLi5hcmdzKV07XG59XG4iXSwibmFtZXMiOlsidHdvIiwicmVkdWNlIiwidG90YWwiLCJ2YWx1ZSIsImFyZ3MiXSwibWFwcGluZ3MiOiJJQUFzQkEsaUNBQ3JCLHVCQUFPLGlCQUFLQyxPQUFPLFNBQUNDLEVBQU9DLFVBQVVELEVBQVFDLEdBQU8sSUFEckQsa0ZDRWtDQywwQ0FDbkJKLGVBQU9JLDRDQUFhSixlQUFPSSxxQkFBekMsTUFBTyxVQURSIn0=
"
`;

exports[`fixtures build inline-source-map with microbundle 5`] = `
"!function(e,n){\\"object\\"==typeof exports&&\\"undefined\\"!=typeof module?module.exports=n():\\"function\\"==typeof define&&define.amd?define(n):(e||self).inlineSourceMap=n()}(this,function(){var e=function(){try{var e=arguments;return Promise.resolve([].slice.call(e).reduce(function(e,n){return e+n},0))}catch(e){return Promise.reject(e)}};return function(){try{var n=arguments,r=[].slice.call(n);return Promise.resolve(e.apply(void 0,r)).then(function(n){return Promise.resolve(e.apply(void 0,r)).then(function(e){return[n,e]})})}catch(e){return Promise.reject(e)}}});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5saW5lLXNvdXJjZS1tYXAudW1kLmpzIiwic291cmNlcyI6WyIuLi9zcmMvdHdvLmpzIiwiLi4vc3JjL2luZGV4LmpzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBhc3luYyBmdW5jdGlvbiB0d28oLi4uYXJncykge1xuXHRyZXR1cm4gYXJncy5yZWR1Y2UoKHRvdGFsLCB2YWx1ZSkgPT4gdG90YWwgKyB2YWx1ZSwgMCk7XG59XG4iLCJ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BTyxJQURyRCwwRUNFa0NDLDBDQUNuQkosZUFBT0ksNENBQWFKLGVBQU9JLHFCQUF6QyxNQUFPLFVBRFIifQ==
"
`;

Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic-compress-false/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/basic-css/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import './two.css';

export default function() {
export default function () {
const el = document.createElement('div');
el.className = 'testing';
return el;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/basic-dashed-external/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ console.log(tinyglob);

import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/basic-json/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import two from './two.json';

export default async function(...args) {
export default async function (...args) {
return two;
}
2 changes: 1 addition & 1 deletion test/fixtures/basic-no-compress/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/basic-no-pkg-main/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/basic-with-cwd/basic/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/basic/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/css-modules--false/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './not_scoped.css';
import './not_scoped.module.css';

export default function() {}
export default function () {}
2 changes: 1 addition & 1 deletion test/fixtures/css-modules--null/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './not_scoped.css';
import scoped from './scoped.module.css';

export default function() {
export default function () {
const el = document.createElement('div');
el.className = scoped.scoped_class;
return el;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/css-modules--string/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import global from './scoped.css';
import scoped from './scoped.module.css';

export default function() {
export default function () {
const el = document.createElement('div');
el.className =
scoped.scoped_class + ' ' + global.test_class_that_should_be_scoped;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/css-modules--true/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import global from './scoped.css';
import scoped from './scoped.module.css';

export default function() {
export default function () {
const el = document.createElement('div');
el.className =
scoped.scoped_class + ' ' + global.test_class_that_should_be_scoped;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/custom-outputs-alt/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/custom-outputs/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/custom-source/src/custom-source.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/inline-source-map/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/mangle-json-file/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { two } from './two';

export default function() {
export default function () {
console.log(two.prop1);
console.log(two._prop2);
return two;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/minify-config/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { two } from './two';

export default function() {
export default function () {
console.log(two.prop1);
console.log(two._prop2);
return two;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/minify-path-config/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { two } from './two';

export default function() {
export default function () {
console.log(two.prop1);
console.log(two._prop2);
return two;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { two } from './two';

export default function() {
export default function () {
console.log(two.prop1);
console.log(two._prop2);
return two;
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/modern-generators/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { idMaker } from './two';

export default async function() {
export default async function () {
const gen = idMaker();
return [gen.next().value, gen.next().value];
}
2 changes: 1 addition & 1 deletion test/fixtures/modern/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/name-custom-amd/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/name-custom-cli/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/no-pkg-name/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
2 changes: 1 addition & 1 deletion test/fixtures/no-pkg/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { two } from './two';

export default async function(...args) {
export default async function (...args) {
return [await two(...args), await two(...args)];
}
Loading