Git Product home page Git Product logo

Comments (6)

Jenesius avatar Jenesius commented on August 21, 2024 1

Hmm, adding hooks take more time...
I read npm's documentation and find that dependencies is a list of package that used in module(For example import {something} from something;), devDep is a modules that using for development: linters, tests or other
I use only vue, so removing core-js is right!
Thnx!

from vue-modal.

Jenesius avatar Jenesius commented on August 21, 2024

Hello!
By default, when I create a blank project using vue-cli, it adds two deps: core-js and vue.
Core is being a scope of polyfills. I think that we use core-js (or some other vue's library, like vue-service), because after removing core-js form package. json and install clean project I find the core-js library in node-modules.

In result, I remove core-js from dependencies. Thanks @ina6ra

from vue-modal.

Jenesius avatar Jenesius commented on August 21, 2024

Some modules in npm have next config
image

They put vue in peer dependence, but i will save vue in main dependence(i dont think that it will helpfull, what do you think?)

from vue-modal.

ina6ra avatar ina6ra commented on August 21, 2024

Confirmed in a new project.

$ vue --verion
@vue/cli 4.5.13
$ vue create my-project
> Default (Vue 3) ([Vue 3] babel, eslint)
$ cd my-project
$ npm ls vue
`-- [email protected]
$ npm ls core-js
+-- @vue/[email protected]
| `-- @vue/[email protected]
|   `-- [email protected]  deduped
`-- [email protected]
$ yarn add jenesius-vue-modal
$ npm ls vue
+-- [email protected]
| `-- [email protected]  deduped
`-- [email protected]
$ npm ls core-js
+-- @vue/[email protected]
| `-- @vue/[email protected]
|   `-- [email protected]  deduped
`-- [email protected]

In addition to core-js, there were duplicate vue that I did not use.

Both are not mentioned in vue-js-modal, so I think you can delete both.
https://www.npmjs.com/package/vue-js-modal

Since vue-js-modal uses resize-observer-polyfill, it is Dependencies,
but jenesius-vue-modal does not use it, so I don't think you need it either.
https://github.com/euvl/vue-js-modal/search?q=resize-observer-polyfill

from vue-modal.

Jenesius avatar Jenesius commented on August 21, 2024

i will today test library without vue-cli
And then write summary

from vue-modal.

ina6ra avatar ina6ra commented on August 21, 2024

Thanks @Jenesius
I confirmed that it was supported in version 1.0.14.

from vue-modal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.