On തിങ്കള്‍ 08 ജനുവരി 2018 03:36 വൈകു, Paolo Greppi wrote:
> AFAICT upstream does not provide anything that can run in node: all files in 
> dist run in the browser
> https://github.com/vuejs/vue/tree/dev/dist
> i.e. there is nothing you can run node -e "require('vue');" against
> Perhaps what you want is the "ES Module" build, which is "intended for use 
> with modern bundlers like webpack 2 or rollup"
> The vue.esm.js file could be installed by the libjs-vue binary.
> It's probably possible to build it with webpack too.
> Is that acceptable ?

app/assets/javascripts/sidebar/event_hub.js (and other files) has

import Vue from 'vue';

package.json has,

  "main": "dist/vue.runtime.common.js",
  "module": "dist/vue.runtime.esm.js",
  "unpkg": "dist/vue.js",
  "jsdelivr": "dist/vue.js",

If you provide the either main or module, I think that would be enough.
Installing it in /usr/lib/nodejs makes things easier. It can just
symlink to /usr/share/javascript/vue


Attachment: signature.asc
Description: OpenPGP digital signature

Pkg-javascript-devel mailing list

Reply via email to