Skip to content

Commit

Permalink
build: disable loose transpilation for legacy bundle (#3329)
Browse files Browse the repository at this point in the history
* Revert "Convert sets to arrays prior to using spread operator to enable transpilation to ES5 (#3297)"

This reverts commit a545c66.

* build: disable loose transpilation for legacy bundle

Refs: #3297 (comment)
  • Loading branch information
aduh95 committed Nov 24, 2021
1 parent cd8af60 commit 9380cf5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/build-bundle.js
Expand Up @@ -64,7 +64,7 @@ async function transpileDownForIE ([bundleFile, standalone]) {

browserslistEnv: 'legacy',
presets: [['@babel/preset-env', {
loose: true,
loose: false,
targets: { ie:11 },
useBuiltIns: 'entry',
corejs: { version: '3.15', proposals: true },
Expand Down
6 changes: 3 additions & 3 deletions packages/@uppy/core/src/Uppy.js
Expand Up @@ -1559,9 +1559,9 @@ class Uppy {
const restoreStep = currentUpload.step || 0

const steps = [
...Array.from(this.#preProcessors),
...Array.from(this.#uploaders),
...Array.from(this.#postProcessors),
...this.#preProcessors,
...this.#uploaders,
...this.#postProcessors,
]
try {
for (let step = restoreStep; step < steps.length; step++) {
Expand Down

0 comments on commit 9380cf5

Please sign in to comment.