Skip to content

Instantly share code, notes, and snippets.

@kettanaito
Created April 6, 2020 07:05
Show Gist options
  • Save kettanaito/845610b71f7e44e2796dcc8829b5fae6 to your computer and use it in GitHub Desktop.
Save kettanaito/845610b71f7e44e2796dcc8829b5fae6 to your computer and use it in GitHub Desktop.
IE-specific bundle
if (__IE__) {
const ieSpecificShim = require('ie-shim')
ieSpecificShim(...)
}
module.exports = {
plugins: [
new webpack.DefinePlugin({
__IE__: JSON.stringify(process.env.IE)
})
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment