File tree Expand file tree Collapse file tree
packages/excel-builder-vanilla Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,14 +46,8 @@ npm install excel-builder-vanilla
4646The project is now only offered as an ESM Only build
4747
4848``` ts
49- // ESM (preferred) - npm install
49+ // ESM import
5050import { createWorksheet } from ' excel-builder-vanilla' ;
51-
52- // IIFE - CDN
53- < script src = " https://cdn.jsdelivr.net/npm/excel-builder-vanilla@4.2.0/dist/excel-builder.iife.js" > </script >
54- <script >
55- const worksheet = ExcelBuilder .createWorksheet ();
56- < / script >
5751```
5852
5953### CSP (Content Security Policy)
Original file line number Diff line number Diff line change @@ -12,22 +12,10 @@ npm install excel-builder-vanilla
1212```
1313
1414``` ts
15- // ESM (preferred)
15+ // ESM import
1616import { createWorkbook , createWorksheet } from ' excel-builder-vanilla' ;
1717```
1818
19- or from CDN with standalone script (IIFE)
20- ``` html
21- <script src =" https://cdn.jsdelivr.net/npm/excel-builder-vanilla@4.2.0/dist/excel-builder.iife.js" ></script >
22- <script >
23- const worksheet = ExcelBuilder .createWorksheet ();
24- </script >
25- ```
26-
27- {% hint style="warning" %}
28- ** Warning** ESM import is the preferred approach and IIFE might actually be removed in the future to lower download size even further.
29- {% endhint %}
30-
3119### Features Supported
3220
3321- Number and date formatting
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ Available [**Live demo**](https://ghiscoding.github.io/excel-builder-vanilla/) w
1414npm install excel-builder-vanilla
1515```
1616
17- The project only offers 1 bundle type
18- - ESM: to ` import from ` (preferred)
19-
2017``` ts
2118// ESM - npm install
2219import { createWorksheet } from ' excel-builder-vanilla' ;
You can’t perform that action at this time.
0 commit comments