Code Monkey home page Code Monkey logo

Comments (4)

xiangyuecn avatar xiangyuecn commented on May 18, 2024 1

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

from recorder.

xiangyuecn avatar xiangyuecn commented on May 18, 2024

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

from recorder.

falseLuffy avatar falseLuffy commented on May 18, 2024

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

from recorder.

xiangyuecn avatar xiangyuecn commented on May 18, 2024

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

from recorder.

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.