8000 ES Module output is still commonjs · Issue #634 · bokuweb/re-resizable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ES Module output is still commonjs #634

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

Closed
ashubham opened this issue Jun 16, 2020 · 0 comments · Fixed by #635
Closed

ES Module output is still commonjs #634

ashubham opened this issue Jun 16, 2020 · 0 comments · Fixed by #635

Comments

@ashubham
Copy link
Contributor

Overview of the problem

I'm using re-resizable version [6.4.0]

My browser is: Chrome

I am sure this issue is not a duplicate? Yes

Description

The es module output in lib/index.js still contains require calls:

var React = __importStar(require("react"));
var resizer_1 = require("./resizer");
var fast_memoize_1 = __importDefault(require("fast-memoize"));
var DEFAULT_SIZE = {
    width: 'auto',
    height: 'auto',
};
var clamp = 
.
...

Steps to Reproduce

Just install the library and inspect the Module output.

Expected behavior

Module output should contain ES6 import/exports

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 a pull request may close this issue.

1 participant
2ABE
0