Skip to content
New issue

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

enhanceLunr function triggers syntax error on IE11 #27

Open
abouthalf opened this issue Jan 22, 2020 · 0 comments
Open

enhanceLunr function triggers syntax error on IE11 #27

abouthalf opened this issue Jan 22, 2020 · 0 comments

Comments

@abouthalf
Copy link

From the Gatsby documentation

Like all gatsby-* files, the code is not processed by Babel. If you want to use JavaScript syntax which isn’t supported by your version of Node.js, you can place the files in a src subfolder and build them to the plugin folder root.

The file commons.js uses ES6 syntax - which is bundled in gatsby-browser.js, but not transpiled by WebPack / Babel - causing failures in IE11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant