Parcel Bundler starting from version 1.5.0 should play nice with this library out of the box. The standard import form can be used in JS files:
import XLSX from 'xlsx'
Errors of the form Could not statically evaluate fs call
stem from a parcel
bug.
Upgrade to version 1.5.0 or later.