Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dist contains ES6 modules #26

Closed
csvan opened this issue Aug 24, 2020 · 1 comment
Closed

Dist contains ES6 modules #26

csvan opened this issue Aug 24, 2020 · 1 comment
Labels

Comments

@csvan
Copy link

csvan commented Aug 24, 2020

As of the latest release, line 36 in the dist/index.js file now contains:

import React from 'react';

This breaks a lot of projects using for example Jest, where items in node_modules are by default not passed through Babel.

People using Jest can add the following to their configs as a temporary workaround, but it's not optimal:

transformIgnorePatterns: ['node_modules/(?!react-simple-timefield)']
@antonfisher
Copy link
Owner

Good catch! Just pushed https://www.npmjs.com/package/react-simple-timefield/v/3.2.3 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants