Comments (1)
Video.js 래퍼를 개발할 때와 마찬가지로, Plugin은 video.js
전역 모듈에 등록하고 이후 사용하는 방식이기 때문에, 한 어플리케이션 내에 2개 이상의 video.js
객체가 존재할 경우 리액트 프로젝트가 올바른 video.js
를 식별하지 못할 수 있다.
실제 모듈을 배포할 때에는 video.js
를 Peer Dependency로 분류하므로 문제가 없지만, 테스트를 해야하는 개발 환경에서는 videojs-thumbnail-sprite
프로젝트 내의 video.js
와 테스트용 React 프로젝트 내의 video.js
가 동시에 존재하는 상황이 발생한다. 레퍼 컴포넌트를 개발할 때와 마찬가지로, 모듈과 React 프로젝트가 참조하는 video.js
가 동일하도록, yarn link
기능을 적극 활용하자.
videojs-thumbnail-sprite
의node_modules
내의video.js
디렉토리를yarn link
로 등록하고, React 프로젝트에서video.js
를 직접 사용(npm install
)하는 대신,yarn link video.js
를 사용하여 모듈의 의존성을 사용한다.
from videojs-thumbnail-sprite.
Related Issues (10)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from videojs-thumbnail-sprite.