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
A component [compiler](https://docs.bitsrc.io/docs/ext-compiling.html) that bundles the component using [webpack](https://webpack.js.org/) v4.0.1.
4
+
5
+
## What is bundled?
6
+
The bundler bundles the component's main file and test files.
7
+
In case there are component files that are not in those files' dependency trees, they won't be bundled. Note that this is in accordance with webpack's usual behavior, but not in accordance with the usual behavior of Bit compilers, which usually compile all the files.
8
+
9
+
## How to use?
10
+
11
+
Import the environment.
12
+
```bash
13
+
bit import bit.envs/bundlers/webpack -c
14
+
```
15
+
16
+
Then build using [bit build](https://docs.bitsrc.io/docs/cli-build.html).
A component [compiler](https://docs.bitsrc.io/docs/ext-compiling.html) that bundles the component using [webpack](https://webpack.js.org/) v4.0.1.
4
+
5
+
## What is bundled?
6
+
The bundler bundles the component's main file and test files.
7
+
In case there are component files that are not in those files' dependency trees, they won't be bundled. Note that this is in accordance with webpack's usual behavior, but not in accordance with the usual behavior of Bit compilers, which usually compile all the files.
8
+
9
+
## How to use?
10
+
11
+
Import the environment.
12
+
```bash
13
+
bit import bit.envs/bundlers/webpack -c
14
+
```
15
+
16
+
Then build using [bit build](https://docs.bitsrc.io/docs/cli-build.html).
0 commit comments