We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I meet the code in webpack
if(installedModules[request].parents.indexOf(moduleId) < 0)
but the IE8 seems not support indexOf, how can I make a workaround?
The text was updated successfully, but these errors were encountered:
@shelbeniskb, well, maybe you could include a polyfill beforehand into your source HTML file...
<!--[if lte IE 8]> <script type="text/javascript" src="ie8-polyfill.js"></script> <![endif]-->
And then in your entry file write something like that:
require('file?name=[name].[ext]!polyfills/ie8-polyfill');
Webpack will put it into your output folder, and IE8 will load the polyfill...
Sorry, something went wrong.
@noomorph Thanks, it can solve the problem, but not very well. there is also another similar solution:
entry: { main: [ 'es5-shim', './src/js/main.js' ] }
@shelbeniskb , ohhh, I thought webpack's bootstrap section in entry file is incomptabile with IE8... Your suggested option is a bit safer and cleaner.
No branches or pull requests
I meet the code in webpack
but the IE8 seems not support indexOf, how can I make a workaround?
The text was updated successfully, but these errors were encountered: