Advertisement
Guest User

Untitled

a guest
Jun 30th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. = javascript_include_tag :matrix
  2.  
  3. require("./vector/index") // points to app/assets/javascript/vector/index.js
  4.  
  5. app/assets/javascripts/vector/index.js: Unexpected token (206:6)
  6. 204 | }
  7. 205 |
  8. > 206 | async function loadApp() {
  9.  
  10. class Application < Rails::Application
  11. config.browserify_rails.commandline_options = "-t [ babelify --presets [ es2015 ] ]"
  12. end
  13.  
  14. {
  15. "name": "Diaspora",
  16. "dependencies": {
  17. "babel-polyfill": "^6.5.0",
  18. "babel-preset-es2015": "^6.1.18",
  19. "babel-runtime": "^6.9.2",
  20. "babelify": "^7.2.0",
  21. "browser-request": "^0.3.3",
  22. "browserify": "~10.2.4",
  23. "browserify-incremental": "^3.0.1"
  24. // More files
  25. },
  26. "license": "MIT",
  27. "engines": {
  28. "node": ">= 0.10"
  29. },
  30. "browserify": {
  31. "transform": [["babelify", { "presets": ["es2015"] }]]
  32. },
  33. "devDependencies": {
  34. "babel-plugin-transform-runtime": "^6.9.0"
  35. }
  36. }
  37.  
  38. gem "rails", "4.2.6"
  39. gem "browserify-rails", "1.1.0"
  40.  
  41. {
  42. "presets": ["es2015"],
  43. "plugins": [
  44. ["transform-runtime", {
  45. "polyfill": false,
  46. "regenerator": true
  47. }]
  48. ]
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement