Skip to content

Commit 6ae4163

Browse files
committed
fix: "type": "module" issue #437
1 parent d995695 commit 6ae4163

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ autoComplete.js is a simple, pure vanilla Javascript library progressively desig
5151
`JS`
5252

5353
```html
54-
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.8/dist/autoComplete.min.js"></script>
54+
<script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.9/dist/autoComplete.min.js"></script>
5555
```
5656

5757
`CSS`
5858

5959
```html
60-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.8/dist/css/autoComplete.min.css">
60+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.9/dist/css/autoComplete.min.css">
6161
```
6262
#### Package Manager
6363

docs/demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png">
7373
<meta name="theme-color" content="#ffffff">
7474
<!-- <link rel="stylesheet" type="text/css" media="screen"
75-
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.8/dist/css/autoComplete.min.css"> -->
75+
href="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.9/dist/css/autoComplete.min.css"> -->
7676
<link rel="stylesheet" type="text/css" media="screen" href="./css/autoComplete.css">
7777
<link rel="stylesheet" type="text/css" media="screen" href="./css/main.css">
7878
<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">
@@ -150,7 +150,7 @@ <h4>mode</h4>
150150
</div>
151151
</footer>
152152
</div>
153-
<!-- <script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.8/dist/autoComplete.min.js"></script> -->
153+
<!-- <script src="https://cdn.jsdelivr.net/npm/@tarekraafat/autocomplete.js@10.2.9/dist/autoComplete.min.js"></script> -->
154154
<script src="./js/autoComplete.js"></script>
155155
<script src="./js/index.js"></script>
156156
</body>

docs/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
<script type="text/javascript"
158158
src="//platform-api.sharethis.com/js/sharethis.js#property=5c213660c276020011d38212&product=inline-share-buttons"
159159
async="async"></script>
160-
<link rel="stylesheet" href="https://unpkg.com/@tarekraafat/autocomplete.js@10.2.8/dist/css/autoComplete.css">
160+
<link rel="stylesheet" href="https://unpkg.com/@tarekraafat/autocomplete.js@10.2.9/dist/css/autoComplete.css">
161161
</head>
162162

163163
<body>
@@ -208,7 +208,7 @@
208208
mustache: {
209209
data: ["../package.json", {
210210
minVersion: "10.2",
211-
version: "10.2.8"
211+
version: "10.2.9"
212212
}]
213213
}
214214
}

docs/release-notes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ For more information on semantic versioning, please visit <http://semver.org/>.
3535

3636
***
3737

38-
### v10.2.8 ✨
38+
### v10.2.9 ✨
39+
- 🔧 Fixed: `"type": "module"` issue (Thanks 👍 @bbysaeth and @jules-w2) #437
40+
41+
### v10.2.8
3942
- ➕ Added: `Clear` event (Thanks 👍 @alan-rudzinski) #435
4043
- 🔧 Fixed: `LiveReload` script issue (Thanks 👍 @Jammmmm) #434
4144
- 🎛️ Updated: Development dependencies

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "10.2.8",
2+
"version": "10.2.9",
33
"name": "@tarekraafat/autocomplete.js",
44
"description": "Simple autocomplete pure vanilla Javascript library.",
55
"keywords": [
@@ -55,7 +55,6 @@
5555
"dist",
5656
"src"
5757
],
58-
"type": "module",
5958
"main": "dist/autoComplete.js",
6059
"browser": "dist/autoComplete.min.js",
6160
"unpkg": "dist/autoComplete.min.js",
@@ -77,7 +76,7 @@
7776
},
7877
"scripts": {
7978
"dev": "NODE_ENV=development rollup -c -w",
80-
"build": "NODE_ENV=production rollup -c",
79+
"build": "NODE_ENV=production rollup -c --bundleConfigAsCjs",
8180
"docs": "jsdoc -c jsdocs.json"
8281
},
8382
"license": "Apache-2.0",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default [
5959
},
6060
toplevel: true,
6161
}),
62-
gzipPlugin(),
62+
gzipPlugin.default(),
6363
],
6464
},
6565
{
@@ -91,7 +91,7 @@ export default [
9191
presets: ["@babel/preset-env"],
9292
}),
9393
cleanup(),
94-
gzipPlugin(),
94+
gzipPlugin.default(),
9595
// Analyzer
9696
analyze({
9797
onAnalysis,

0 commit comments

Comments
 (0)