Skip to content

Commit 1b75e9e

Browse files
committed
docs: remove IIFE mention and keep only ESM
1 parent b1e2a37 commit 1b75e9e

3 files changed

Lines changed: 2 additions & 23 deletions

File tree

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,8 @@ npm install excel-builder-vanilla
4646
The project is now only offered as an ESM Only build
4747

4848
```ts
49-
// ESM (preferred) - npm install
49+
// ESM import
5050
import { 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)

docs/README.md

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,10 @@ npm install excel-builder-vanilla
1212
```
1313

1414
```ts
15-
// ESM (preferred)
15+
// ESM import
1616
import { 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

packages/excel-builder-vanilla/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ Available [**Live demo**](https://ghiscoding.github.io/excel-builder-vanilla/) w
1414
npm 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
2219
import { createWorksheet } from 'excel-builder-vanilla';

0 commit comments

Comments
 (0)