File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11MIT License
22
3- Copyright (c) 2021 Bardi Harborow
3+ Copyright (c) 2016-2025 Bardi Harborow
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change 44![ ] ( https://img.shields.io/npm/dw/babel-plugin-transform-es2015-modules-strip )
55[ ![ This project is licensed under the terms of the MIT license.] ( https://img.shields.io/npm/l/babel-plugin-transform-es2015-modules-strip )] ( https://github.com/bardiharborow/babel-plugin-transform-es2015-modules-strip/blob/master/LICENSE )
66
7- This is a Babel plugin which strips import and export statements from modules.
7+ A Babel plugin that strips ` import ` and ` export ` statements from modules.
8+
9+ ## Installation
10+
11+ ``` sh
12+ npm install --save-dev babel-plugin-transform-es2015-modules-strip
13+ ```
814
915## Example
1016
11- ** In **
17+ The plugin takes this code:
1218
1319``` javascript
1420import path from ' path' ;
@@ -18,21 +24,15 @@ console.log(path.sep);
1824export default 42 ;
1925```
2026
21- ** Out **
27+ And returns this code:
2228
2329``` javascript
2430console .log (path .sep );
2531```
2632
27- ## Installation
28-
29- ``` sh
30- npm install --save-dev babel-plugin-transform-es2015-modules-strip
31- ```
32-
3333## Usage
3434
35- ### With a configuration file (Recommended)
35+ ### In the ` babel.config.json ` configuration file
3636
3737``` json
3838{
@@ -45,7 +45,7 @@ npm install --save-dev babel-plugin-transform-es2015-modules-strip
4545}
4646```
4747
48- ### Via Node API
48+ ### With the Node API
4949
5050``` javascript
5151require (" @babel/core" ).transformSync (" code" , {
@@ -58,6 +58,12 @@ require("@babel/core").transformSync("code", {
5858});
5959```
6060
61+ ## History
62+
63+ This plugin was used by [ Bootstrap] ( https://github.com/twbs/bootstrap ) between
64+ v4.0.0-beta ([ twbs/bootstrap #22045 ] ( https://github.com/twbs/bootstrap/pull/22045 ) )
65+ and v4.1.2 ([ twbs/bootstrap #26767 ] ( https://github.com/twbs/bootstrap/pull/26767 ) ).
66+
6167## License
6268
6369This project is licensed under the terms of [ the MIT license] ( LICENSE ) .
Original file line number Diff line number Diff line change 11{
22 "name" : " babel-plugin-transform-es2015-modules-strip" ,
33 "version" : " 0.1.2" ,
4- "description" : " A Babel plugin which strips import and export statements from modules." ,
4+ "description" : " A Babel plugin that strips import and export statements from modules." ,
55 "keywords" : [
66 " babel-plugin"
77 ],
You can’t perform that action at this time.
0 commit comments