Skip to content

Enhancement: Native ESM modules using CDN for browser example #277

@park-brian

Description

@park-brian

First of all, thank you for this great library. It is tremendously helpful for client-side exploration of MS Access databases.

I noticed that the browser-based example is using parcel to bundle the assets. You are probably aware of this, but it is possible to eliminate the build/bundling step by referencing a CDN. For example:

import { Buffer } from 'https://cdn.jsdelivr.net/npm/buffer@6/+esm'
import MDBReader from 'https://cdn.jsdelivr.net/npm/mdb-reader@2.2.5/+esm' // @latest or @2 can be used instead

This could prove helpful for importing this library directly in the browser or other JavaScript runtimes that don't use a package manager.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions