Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

It's not possible to import npm .vue packages? #214

Open
klarkc opened this issue Dec 20, 2017 · 0 comments
Open

It's not possible to import npm .vue packages? #214

klarkc opened this issue Dec 20, 2017 · 0 comments

Comments

@klarkc
Copy link

klarkc commented Dec 20, 2017

It seems that vueify ignores .vue files in node_modules directory, it's a desired behavior?

Test module: https://github.com/klarkc/test-module

Steps to reproduce:

$ npm i klarkc/test-module browserify vueify

main.js:

const TestModule = require('test-module');

build.js:

const browserify = require('browserify');
const vueify = require('vueify');

let b = browserify({entries: 'main.js'});
b.transform(vueify);
b.bundle();

$ node build.js

Error:


events.js:136
      throw er; // Unhandled 'error' event
      ^
SyntaxError: Unexpected token

Expected: To bundle without errors

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant