You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@annotator.apache.org by GitBox <gi...@apache.org> on 2021/07/13 19:31:10 UTC

[GitHub] [incubator-annotator] DellCliff commented on issue #113: Can't use after installing via npm (without webpack or similar)

DellCliff commented on issue #113:
URL: https://github.com/apache/incubator-annotator/issues/113#issuecomment-879344731


   It could run in the browser, if imports like these (ES6 imports instead of node imports) were generated:
   
   ```
   import _Object$keys from "../@babel/runtime-corejs3/core-js/object/keys";
   import _sliceInstanceProperty from "../@babel/runtime-corejs3/core-js/instance/slice";
   import _Array$from from "../@babel/runtime-corejs3/core-js/array/from";
   import _Symbol from "../@babel/runtime-corejs3/core-js/symbol";
   import _getIteratorMethod from "../@babel/runtime-corejs3/core-js/get-iterator-method";
   import _getIterator from "../@babel/runtime-corejs3/core-js/get-iterator";
   ```
   
   `../` here would walk up to the `node_modules` folder.
   
   This presumes that those babel imports also generate ES6 style module files.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@annotator.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org