WICG / inert

Polyfill for the inert attribute and property.
Other
924 stars 81 forks source link

Unknown Syntax error in IE #149

Closed goatandsheep closed 4 years ago

goatandsheep commented 4 years ago

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.

r0mflip commented 4 years ago

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

goatandsheep commented 4 years ago

Oh this is a duplicate of #136 then I think

goatandsheep commented 4 years ago

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

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

goatandsheep commented 4 years ago

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

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