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

fix: upload cjs to npm instead of es2015 #425

Closed
wants to merge 1 commit into from
Closed

fix: upload cjs to npm instead of es2015 #425

wants to merge 1 commit into from

Conversation

orzyyyy
Copy link

@orzyyyy orzyyyy commented Sep 7, 2019

My test units crash as below:

/home/orzorzorzorz/github/mini-xmind/node_modules/react-draggable/lib/Draggable.js:2
import React from 'react';
       ^^^^^

SyntaxError: Unexpected identifier

Close #426

@orzyyyy
Copy link
Author

orzyyyy commented Sep 7, 2019

Check here for detail.

What upload to npm is the source code as es2015, which contains import. That's why my test units crash.

@STRML STRML closed this in ad8b499 Sep 9, 2019
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.

Cannot Import
1 participant