advisr-io / excel4node

Node module to allow for easy Excel file creation
MIT License
124 stars 18 forks source link

Babel transpiling converts Workbook constructor to function #63

Closed andyvanosdale closed 1 year ago

andyvanosdale commented 1 year ago

Describe the bug When attempting to new the Workbook constructor from the distribution version of excel4node, the program is held indefinitely. Looking at the Babel transpiling, it removes the constructor and makes it a function.

To Reproduce

  1. Install the excel4node library from NPM (excel4node@1.8.2)
// Node
const excel = require('excel4node')
// Deno
import excel from 'npm:excel4node@1.8.2'

const workbook = new excel.Workbook()

Gist: https://gist.github.com/andyvanosdale/df8826fe80cf51d41e730b8665507786

Expected behavior Transpiling keeps the class behavior and has a constructor

Environment (please complete the following information):

andyvanosdale commented 1 year ago

Closing... not sure why this was having an issue earlier, but it is working fine now.