Skip to content

Fixed issue #4, My fork now uses CommonJS for everything#5

Open
CodeBoy124 wants to merge 3 commits intoRubyLouvre:masterfrom
CodeBoy124:master
Open

Fixed issue #4, My fork now uses CommonJS for everything#5
CodeBoy124 wants to merge 3 commits intoRubyLouvre:masterfrom
CodeBoy124:master

Conversation

@CodeBoy124
Copy link

I fixed issue #4 by changing the last line of the index.js file to use 'module.exports' instead of 'export default'.
I also explicitly set the type property in the package.json to 'commonjs' just in case.
This will make the package work for all NodeJS versions and without errors

CodeBoy124 and others added 3 commits June 10, 2023 09:33
… ES Module syntax is harder to import in CommonJS
This commit adds node_modules/ to the ignore list to prevent it from being committed to the repository. This is a common practice as node_modules/ can be easily regenerated by running `npm install` or `yarn install`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant