Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否支持 webpack import #38

Closed
falseLuffy opened this issue Jul 30, 2019 · 4 comments
Closed

能否支持 webpack import #38

falseLuffy opened this issue Jul 30, 2019 · 4 comments
Labels
good first issue Good for newcomers

Comments

@falseLuffy
Copy link

No description provided.

@xiangyuecn
Copy link
Owner

试试:直接import,通过window.Recorder调用。没有试过😂,如果可用麻烦反馈一下哈

@falseLuffy
Copy link
Author

自问自答
使用webpack开发又不想全局引用的话, 可以使用exports-loader
具体使用如下
import Recorder from 'exports-loader?window.Recorder!../../js/recorder.wav.min.js'

@xiangyuecn xiangyuecn added the good first issue Good for newcomers label Jul 31, 2019
@xiangyuecn
Copy link
Owner

没试过webpack,但还是觉得蛮实用,我把这个issue加到readme里面

@xiangyuecn
Copy link
Owner

已提供import支持,现在可以直接 import Recorder from recorder.wav.min.js这样写了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants