WICG / inert

Polyfill for the inert attribute and property.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unknown Syntax error in IE

goatandsheep opened this issue · comments

On page loading, I get a Syntax error in IE that points to the InertRoot class. On FF and Chrome it seems okay. We are using Babel and our application has been IE compliant so far. I'm not sure what to make of the error:
image

image

To add further details, we are using jquery.

From the images it look like your insert is not transpiled for IE compat. Try transpiling it or you can have a try using https://unpkg.com/wicg-inert

Oh this is a duplicate of #136 then I think

How do I import a specific version, i.e. main vs module?

I'm doing this: import "wicg-inert";

I found this example webpack.config.js, which does:

module.exports = {
  resolve: {
    alias: {
      'wicg-inert': path.resolve('./node_modules/wicg-inert/dist/inert'),
    }
  }
}