-
Notifications
You must be signed in to change notification settings - Fork 52
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
Version 1.5.3 'leaks' ES6 code (let, const) into minified js bundle when built #38
Comments
Hi, |
@andyhu |
@lcampanis I'll take a look! |
Hi, sorry for the lack of response, I've been very busy recently. I have done some work to fix this issue. Could you test again with version 1.6.2? If there's still any issues, please let me know. Thanks! |
I'll do that @andyhu. Thanks |
See #44 - might help |
It appears that this is working for us now with the latest version of transliteration (1.6.2) by importing the minified version.
Closing this issue for now |
It is discouraged to use pre-built packages in webpack, because this way you import all the code without giving webpack an opportunity to only bundle the stuff that's actually being used. Please do not use |
Hi @kachkaev - I agree that it's not ideal, but it was suggested to us by @andyhu and is currently working. We're using Meteor and not webpack currently and working on moving transliteration to a dynamic import as well so it's only loaded for users who need it. I saw your PR, if that gets pulled in, we'll try that as well and see if we can stop importing the pre-built package. |
I've got an issue that seems related to #28
I've got a meteor app (meteor controls the build) that imports
transliteration
- there's a description of the problem and a reproduction based on our app here: reactioncommerce/reaction#2091For versions up to 1.5.2 transliteration bundles a correctly babelified and minified js file. When we got bumped up to 1.5.3, we started seeing
let
andconst
in our minified production bundle. I think this is due to the change for 1.5.3 that removed the"browser": "lib/browser/transliteration.js",
line, and the conversation in #28 seems to point that direction as well.This issue only causes problems for us when an older browser such as PhantomJS is used to crawl the site. Unfortunately, the prerendering techniques we use to create cached, google/bing/yahoo crawl friendly pages use PhantomJS, and the
let
andconst
in the js bundle causes them to crash before rendering.The text was updated successfully, but these errors were encountered: