-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[web components]: Remove babel/preset-env from build step (#11945)
### Related Ticket(s) Closes #11944 [ADCMS-5513](https://jsw.ibm.com/browse/ADCMS-5513) ### Description Removes `@babel/preset-env` from the babel configuration for the `build:modules:scripts` gulp task that is responsible for transpiling modules into the `es/` directory for distribution. This seems to have slipped in by mistake (see [issue description](#11944) for details) and leads to bloated transpiled modules, as the targets for `@babel/preset-env` are undefined leading to transpiling for the lowest common denominator of browser support. The fix here puts the `@carbon/ibmdotcom-web-components` build script inline with the CWC build script, removing `@babel/preset-env`. ### Changelog **Changed** - Updated `strip-comments` to `^2.0.1` **Removed** - Removed `@babel/preset-env` from the `build:modules:scripts` gulp task <!-- React and Web Component deploy previews are enabled by default. --> <!-- To enable additional available deploy previews, apply the following --> <!-- labels for the corresponding package: --> <!-- *** "test: e2e": Codesandbox examples and e2e integration tests --> <!-- *** "package: services": Services --> <!-- *** "package: utilities": Utilities --> <!-- *** "RTL": React / Web Components (RTL) --> <!-- *** "feature flag": React / Web Components (experimental) -->
- Loading branch information
Showing
10 changed files
with
13 additions
and
42 deletions.
There are no files selected for viewing
Binary file removed
BIN
-4.42 KB
.yarn/cache/babel-extract-comments-npm-1.0.0-66ce3c8bbc-6345c688cc.zip
Binary file not shown.
Binary file removed
BIN
-1.9 KB
.yarn/cache/babel-plugin-syntax-object-rest-spread-npm-6.13.0-9905241ebe-14083f2783.zip
Binary file not shown.
Binary file removed
BIN
-4.58 KB
.yarn/cache/babel-plugin-transform-object-rest-spread-npm-6.26.0-c2b6454d62-d14bd4a90e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters