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
2) In `webpack.config.js` add a line `devtool: 'cheap-module-source-map'` for the plain unoptimized unminified bundle configuration similar to what there is in the optimized and minified bundle configuration.
20
+
Replace `v1.3.2` with the desired version tag.
17
21
18
-
3) Build the package
19
-
```
20
-
sudo apt install webpack
22
+
### 2) Install dependencies
23
+
24
+
```bash
21
25
npm install
26
+
```
27
+
28
+
### 3) Build forge.js (UMD bundle with source maps)
29
+
30
+
In `webpack.config.js`, add a line `devtool: 'cheap-module-source-map'` in the plain unoptimized unminified bundle configuration (around line 82), similar to what exists in the optimized bundle configuration.
31
+
32
+
Then build:
33
+
34
+
```bash
22
35
npm run build
23
36
```
24
37
25
-
4) A newly-generated `forge.js` should appear in `dist` subfolder, copy it over the file in this repo.
38
+
Copy `dist/forge.js` to `extension/lib/forge.js` in this repository.
39
+
40
+
### 4) Build forge.mjs (ES module)
41
+
42
+
Since `node-forge` uses webpack and has Node.js built-ins that can be tricky to bundle with rollup for the browser, the most stable way to generate the ES module is to convert the already-built `forge.js`.
0 commit comments