Problems creating babel-polyfill.min.js
Hi,
I'd like to upgrade the package r-cran-shiny. The new upstream version
contains babel-polyfill.min.js. I think I found the source which can be
obtained via
npm install --save-dev babel-polyfill
mv node_modules/babel-polyfill/dist/polyfill.js babel-polyfill.js
While this process creates also a minimized js I have no idea how this
can be approached. Normally I'm using yui-compressor for the conversion
but in this case it fails:
$ yui-compressor babel-polyfill.js
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
Caused by: java.util.MissingResourceException: Can't find bundle for base name org.mozilla.javascript.resources.Messages, locale de_DE
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:845)
at org.mozilla.javascript.ScriptRuntime$DefaultMessageProvider.getMessage(ScriptRuntime.java:3608)
...
When doing a websearch this might mean that the JS contains errors - but
it seems there is a different converter which has no problems. Before
I start debugging what exactly happens in "npm install" I wonder whether
comebody could enlighten me what's the best way to get the minimized JS.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: