-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat!: default `.js` as ESM, CJS to `.cjs` & build target ES2021
- Loading branch information
1 parent
0103097
commit 5e99b03
Showing
10 changed files
with
309 additions
and
564 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,15 +21,26 @@ <h5>CDN</h5> | |
<a href="https://www.jsdelivr.com/" target="__blank">jsDelivr</a> graciously provide CDNs for many JavaScript libraries | ||
including Multiple-Select-Vanilla. Just use the following CDN links. | ||
</p> | ||
<p> | ||
The project now ships its <code>.js</code> files as ESM by default, if you still wish to use the old CommonJS (CJS) format with <code>require()</code>, | ||
then you will have to use <code>.cjs</code> file extension. | ||
</p> | ||
|
||
<div style="background: #f7f7f7; padding: 10px"> | ||
<pre> | ||
<!-- Latest compiled and minified CSS --> | ||
<link href="<span style="color:#880000">https://cdn.jsdelivr.net/npm/multiple-select-vanilla@0.6.3/dist/styles/css/multiple-select.css</span>" rel="<span style="color:#880000">stylesheet</span>"> | ||
<link href="<span style="color:#880000">https://cdn.jsdelivr.net/npm/multiple-select-vanilla@1.0.0/dist/styles/css/multiple-select.css</span>" rel="<span style="color:#880000">stylesheet</span>"> | ||
|
||
<!-- Latest compiled and minified JavaScript --> | ||
<script src="<span style="color:#880000">https://cdn.jsdelivr.net/npm/[email protected]/dist/multiple-select.js</span>"></script></pre> | ||
<!-- (ESM requires <span style="color:#d63384">type="module"</span>) Latest compiled and minified JavaScript --> | ||
<script type="module" src="<span style="color:#880000">https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/multiple-select.js</span>"></script> | ||
|
||
<!-- (CJS requires <span style="color:#d63384">.cjs</span> extension) Latest compiled and minified JavaScript --> | ||
<script src="<span style="color:#880000">https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/multiple-select.cjs</span>"></script></pre> | ||
</div> | ||
|
||
<quote> | ||
<b>Note:</b> the <code>dist/browser</code> location is the only one providing the <code>MultipleSelect</code> on the <code>window</code> object. | ||
</quote> | ||
</section> | ||
|
||
<section> | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,24 +56,24 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"devDependencies": { | ||
"@lerna-lite/cli": "^2.7.0", | ||
"@lerna-lite/publish": "^2.7.0", | ||
"@lerna-lite/watch": "^2.7.0", | ||
"@playwright/test": "^1.39.0", | ||
"@types/node": "^20.9.0", | ||
"@typescript-eslint/eslint-plugin": "^6.10.0", | ||
"@typescript-eslint/parser": "^6.10.0", | ||
"@lerna-lite/cli": "^2.7.2", | ||
"@lerna-lite/publish": "^2.7.2", | ||
"@lerna-lite/watch": "^2.7.2", | ||
"@playwright/test": "^1.40.0", | ||
"@types/node": "^20.9.3", | ||
"@typescript-eslint/eslint-plugin": "^6.12.0", | ||
"@typescript-eslint/parser": "^6.12.0", | ||
"cross-env": "^7.0.3", | ||
"eslint": "^8.53.0", | ||
"eslint": "^8.54.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prefer-arrow": "^1.2.3", | ||
"npm-run-all2": "^6.1.1", | ||
"pnpm": "^8.10.3", | ||
"pnpm": "^8.10.5", | ||
"prettier": "^3.1.0", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.2.2" | ||
"typescript": "^5.3.2" | ||
} | ||
} |
Oops, something went wrong.