Meteor does not bundle node_modules bootstrap (5) package to ES5

Hi, I would like to very nicely ask for the help with bundling node_modules packages into es5. I’m using meteor 2.5.6 (client+server platform). Also I’m using last bootstrap (5) npm dependency.

App is running but when I will open the app with older Safari mobile, I will get the following error in browser console:

SyntaxError: Unexpected token '...'. Expected a property name.

…inside bootstrap.js is used spread operator: bootstrap/bootstrap.js at 7a8459641f14abeaa1717dba79fdc16201a11aa8 · twbs/bootstrap · GitHub

Therefore I must bundle the bootstrap package to ES5, therefore I added the following lines into my package.json by the meteor documentation

  "meteor": {
    "mainModule": {
      "client": "client/main.ts",
      "server": "server/main.ts"
    },
    "testModule": "tests/custom/main.ts",
    "nodeModules": {
      "recompile": {
        "@popperjs/core": [
          "legacy"
        ],
        "bootstrap": [
          "legacy"
        ],
        "bootstrap-daterangepicker": [
          "legacy"
        ],
        "swiper": [
          "legacy"
        ]
      }
    }
  },

Ecmascript meteor package I have also installed:

ecmascript@0.16.1

But… es5 bundling not works in my case… What I’m doying wrong?

Thanks a lot.