You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"modules": false is not specified in babel-preset-env.
So I just wondered if ES6 modules features like tree-shaking really works using this preset. What do you think?
The text was updated successfully, but these errors were encountered:
You are right. modules should be false for that. I believe I initially wrote the preset with modules:false but then left it out in order to ship it. modules:false was causing issues.
For instance, we still have some CommonJS to clean up like module.exports = RadioGroup;. Changing to ES6 modules would be a breaking change.
What would you recommend? I think we can turn it on once the CommonJS is gone. If you can change the few modules and get Storybook and the tests going. I'll update the preset.
I have a question.
In Getting Started, it says
but when I see the preset definition,
https://github.com/salesforce/design-system-react/blob/master/preset/index.js
"modules": false
is not specified in babel-preset-env.So I just wondered if ES6 modules features like tree-shaking really works using this preset. What do you think?
The text was updated successfully, but these errors were encountered: