From 805c2657f2dbcca9595dd8950c3eb7591fb64e06 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 26 Oct 2021 11:07:17 +0200 Subject: [PATCH] remove unrelated file --- scripts/babel-test.js | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 scripts/babel-test.js diff --git a/scripts/babel-test.js b/scripts/babel-test.js deleted file mode 100644 index 24283dc3..00000000 --- a/scripts/babel-test.js +++ /dev/null @@ -1,32 +0,0 @@ -babel = require('@babel/standalone'); - -const code = ` -async function doit() { - const foo = {bar: 5}; - const mapped = Object.values(foo).map(n => n*n); - console.log(mapped); - await Promise.resolve(); -} -doit(); -`; - -const {code: babelCode} = babel.transform(code, { - babelrc: false, - configFile: false, - presets: [ - [ - "env", - { - useBuiltIns: "entry", - modules: false, - corejs: "3.4", - targets: "IE 11", - // we provide our own promise polyfill (es6-promise) - // with support for synchronous flushing of - // the queue for idb where needed - // exclude: ["es.promise", "es.promise.all-settled", "es.promise.finally"] - } - ] - ] -}); -console.log(babelCode);