ionic-team / stencil

A toolchain for building scalable, enterprise-ready component systems on top of TypeScript and Web Component standards. Stencil components can be distributed natively to React, Angular, Vue, and traditional web developers from a single, framework-agnostic codebase.
https://stenciljs.com
Other
12.6k stars 789 forks source link

[Old Firefox - version 45] Syntax error in strict mode #2839

Closed Aswathprabhu closed 2 years ago

Aswathprabhu commented 3 years ago

Stencil version:

@stencil/core@1.17.3

I'm submitting a:

Current behavior: Trying to load the nomodule file on an old browser will throw a warning in the console that prevents the entire file from being executed:

SyntaxError: in strict mode code, functions may be declared only at top level or immediately within another function

Expected behavior: Should be working normally

User Agent

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:45.0) Gecko/20100101 Firefox/45.0

chenyulun commented 3 years ago

2755

chenyulun commented 3 years ago

@stencil/core 2.5.0

extras: {
    appendChildSlotFix: true,
    cloneNodeFix: true,
    slotChildNodesFix: false,
    cssVarsShim: true,
    dynamicImportShim: true,
    initializeNextTick: true,
    safari10: true,
    scriptDataOpts: true,
    shadowDomShim: true,
  },

This version still has this problem

rwaskiewicz commented 2 years ago

I apologize that this is the first you're seeing any official response from the team. As Firefox was released over 6 years ago (2016.03.08), this falls outside of the scope of the browsers that we're able to support. As a result, I'm going to close this issue. Thanks again!