be-fe / be-fe/iSlider

webpack模式下无法使用插件

Open
#419 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
441
PR merge metrics
No merged PRs in 30d

Description

`import iSlider from 'islider.js' import dot from 'islider.js/build/iSlider.plugin.dot.js'`
通过以上代码引入iSlider之后,插件不能使用。查了下代码,因为`build/iSlider.plugin.dot.js`文件中把插件注册到`build/iSlider.js`这个文件里了。但是iSilder引入的是`build/index.bundle.js`
希望修正一下这个问题

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading build/iSlider.plugin.dot.js and comparing its registration target with the webpack entry represented by build/index.bundle.js. Reproduce the import shown in the issue, then verify that the dot plugin is usable after importing iSlider through the webpack build.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, webpack
Domain
build-system, frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.