fireproof icon indicating copy to clipboard operation
fireproof copied to clipboard

Fireproof import returns `undefined` with Parcel bundler

Open mudcube opened this issue 1 year ago • 0 comments

When attempting to import fireproof from @fireproof/core using Parcel bundler, the imported value is undefined.

Reproduction

Environment

  • @fireproof/core: ^0.19.112
  • Parcel: ^2.13.0

Steps to Reproduce

  1. Create a new project with the following package.json:
{
  "dependencies": {
    "@fireproof/core": "^0.19.112",
    "parcel": "^2.13.0"
  },
  "scripts": {
    "start": "parcel index.html"
  }
}
  1. Add the following code:
import { fireproof } from '@fireproof/core'

console.log(fireproof === undefined)
<script src="./app.js" type="module"></script>
  1. Run npm start

Expected Behavior

The fireproof import should be a defined value containing the Fireproof functionality.

Actual Behavior

The fireproof import is undefined.

mudcube avatar Nov 22 '24 01:11 mudcube