Thanks to visit codestin.com
Credit goes to github.com

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

Could we please drop peerDependencies? #81

Closed
@paulpflug

Description

@paulpflug

In some of my builds I need none of the peerDependencies..

I would prefer a error on runtime when I forgot a dependency, like

you are trying to use hot reloading, but vue-hot-reload-api wasn't found. Run:
npm install --save-dev vue-hot-reload-api

or when using a not installed language:

you are trying to use babel but it isn't installed. Run:
npm install --save-dev babel-core babel-runtime babel-preset-es2015 babel-plugin-transform-runtime

Example:

if (style) {
  try {
    require.resolve("vueify-insert-css")
  } catch {
    throw new Error("you are trying to use the style tag, but vueify-insert-css isn't installed. Run:\nnpm install --save-dev vueify-insert-css")
  }
}

I'm willing to create a PR, if wanted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions