Skip to content

Commit

Permalink
fix: "type": "module" issue #437
Browse files Browse the repository at this point in the history
  • Loading branch information
TarekRaafat committed Oct 22, 2024
1 parent d995695 commit 6ae4163
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ autoComplete.js is a simple, pure vanilla Javascript library progressively desig
`JS`

```html
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].8/dist/autoComplete.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].9/dist/autoComplete.min.js"></script>
```

`CSS`

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].8/dist/css/autoComplete.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].9/dist/css/autoComplete.min.css">
```
#### Package Manager

Expand Down
4 changes: 2 additions & 2 deletions docs/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
<meta name="theme-color" content="#ffffff">
<!-- <link rel="stylesheet" type="text/css" media="screen"
href="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].8/dist/css/autoComplete.min.css"> -->
href="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].9/dist/css/autoComplete.min.css"> -->
<link rel="stylesheet" type="text/css" media="screen" href="./css/autoComplete.css">
<link rel="stylesheet" type="text/css" media="screen" href="./css/main.css">
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
Expand Down Expand Up @@ -150,7 +150,7 @@ <h4>mode</h4>
</div>
</footer>
</div>
<!-- <script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].8/dist/autoComplete.min.js"></script> -->
<!-- <script src="https://cdn.jsdelivr.net/npm/@tarekraafat/[email protected].9/dist/autoComplete.min.js"></script> -->
<script src="./js/autoComplete.js"></script>
<script src="./js/index.js"></script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
<script type="text/javascript"
src="//platform-api.sharethis.com/js/sharethis.js#property=5c213660c276020011d38212&product=inline-share-buttons"
async="async"></script>
<link rel="stylesheet" href="https://unpkg.com/@tarekraafat/[email protected].8/dist/css/autoComplete.css">
<link rel="stylesheet" href="https://unpkg.com/@tarekraafat/[email protected].9/dist/css/autoComplete.css">
</head>

<body>
Expand Down Expand Up @@ -208,7 +208,7 @@
mustache: {
data: ["../package.json", {
minVersion: "10.2",
version: "10.2.8"
version: "10.2.9"
}]
}
}
Expand Down
5 changes: 4 additions & 1 deletion docs/release-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ For more information on semantic versioning, please visit <http://semver.org/>.

***

### v10.2.8 ✨
### v10.2.9 ✨
- 🔧 Fixed: `"type": "module"` issue (Thanks 👍 @bbysaeth and @jules-w2) #437

### v10.2.8
- ➕ Added: `Clear` event (Thanks 👍 @alan-rudzinski) #435
- 🔧 Fixed: `LiveReload` script issue (Thanks 👍 @Jammmmm) #434
- 🎛️ Updated: Development dependencies
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "10.2.8",
"version": "10.2.9",
"name": "@tarekraafat/autocomplete.js",
"description": "Simple autocomplete pure vanilla Javascript library.",
"keywords": [
Expand Down Expand Up @@ -55,7 +55,6 @@
"dist",
"src"
],
"type": "module",
"main": "dist/autoComplete.js",
"browser": "dist/autoComplete.min.js",
"unpkg": "dist/autoComplete.min.js",
Expand All @@ -77,7 +76,7 @@
},
"scripts": {
"dev": "NODE_ENV=development rollup -c -w",
"build": "NODE_ENV=production rollup -c",
"build": "NODE_ENV=production rollup -c --bundleConfigAsCjs",
"docs": "jsdoc -c jsdocs.json"
},
"license": "Apache-2.0",
Expand Down
4 changes: 2 additions & 2 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default [
},
toplevel: true,
}),
gzipPlugin(),
gzipPlugin.default(),
],
},
{
Expand Down Expand Up @@ -91,7 +91,7 @@ export default [
presets: ["@babel/preset-env"],
}),
cleanup(),
gzipPlugin(),
gzipPlugin.default(),
// Analyzer
analyze({
onAnalysis,
Expand Down

0 comments on commit 6ae4163

Please sign in to comment.