-
Notifications
You must be signed in to change notification settings - Fork 103
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
use ESM Modules for dev scripts #701
Comments
I can do this if you want! |
Sure, I've just assigned this issue to you. Thanks for tackling this one 👍 |
I changed all the files to use ESM Modules but for some reason it has had some unforeseen side effects. When It try and build the code, I get this error. You can look at the changes I made here: KolCrooks@b2567f3. |
Hey @KolCrooks,
I was playing around with the mentioned changes above and it looked promising. I didn't get it running with node 12, but node 14 was working fine. |
I think that I created something that builds. I am getting some problems with the |
Thanks @KolCrooks,
There is one more thing regarding the storybook: running |
I think I found a workaround for the Storybook Issue.
|
@MarcusNotheis Sorry that I am just responding now but I have been really busy recently. When I had
It would give an error telling me that I could only use the default import. |
Since we are using Node 12.16 or 14 for developing and building UI5 Web Components for React, we can now migrate all internal dev scripts and helper files to native esm modules.
Todo
We can probably add
"type": "module"
to the top-level package.json, renaming config files (such as .eslintrc.js) to.cjs
.^12.16 || ^14
)Migrate the following files to use ESM Modules:
.storybook/main.js
config/jest.config.js
config/paths.js
scripts/*
shared/tests/serializer/*
babel.config.js
packages/base/scripts/cssVariables/parse.js
packages/main/scripts/create-library-export.js
Useful Links
The text was updated successfully, but these errors were encountered: