fireproof
fireproof copied to clipboard
Fireproof import returns `undefined` with Parcel bundler
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
- Create a new project with the following package.json:
{
"dependencies": {
"@fireproof/core": "^0.19.112",
"parcel": "^2.13.0"
},
"scripts": {
"start": "parcel index.html"
}
}
- Add the following code:
import { fireproof } from '@fireproof/core'
console.log(fireproof === undefined)
<script src="./app.js" type="module"></script>
- Run
npm start
Expected Behavior
The fireproof import should be a defined value containing the Fireproof functionality.
Actual Behavior
The fireproof import is undefined.