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

feat: add cjs and esm build #54

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

yooouuri
Copy link

@yooouuri yooouuri commented Mar 10, 2023

close #53

This PR will add a cjs and esm build.

Also changed from npm to pnpm.

image

import { StreamBarcodeReader } from "vue-barcode-reader";
// or
import { ImageBarcodeReader } from 'vue-barcode-reader'

Stylesheet needs to be imported manually

<style lang="scss" scoped>
@import 'vue-barcode-reader/style.css';
</style>

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

Successfully merging this pull request may close these issues.

vue-barcode-reader doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module
1 participant