Skip to content

Commit 4c6ee7e

Browse files
committed
broken links to example module/nomodule entry file fixed
1 parent ddd5ed0 commit 4c6ee7e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ How many years after (forward of) the current year the `year select` will displa
8080

8181
### Webpack / Rollup / Babel / ES:
8282
Using the module/nomodule approach. Have a look at the example in this repository:
83-
- Create an entry (input) [.js or .mjs or .ts] [file for browsers which support ECMAScript modules](https://github.com/mcshaz/esm-date-input-polyfill/blob/master/examples/esm.module.js), which includes a polyfill for dynamic import in browsers which support modules but not dynamic import statements.
84-
- Have a [seperate entry file for legacy browsers](https://github.com/mcshaz/esm-date-input-polyfill/blob/master/examples/esm.nomodule.js).
83+
- Create an entry (input) [.js or .mjs or .ts] [file for browsers which support ECMAScript modules](https://github.com/mcshaz/esm-date-input-polyfill/blob/master/examples/eg-module-load.module.js), which includes a polyfill for dynamic import in browsers which support modules but not dynamic import statements.
84+
- Have a [seperate entry file for legacy browsers](https://github.com/mcshaz/esm-date-input-polyfill/blob/master/examples/eg-module-load.nomodule.js).
8585
- Modern browsers will only download a tiny file to check for date-input support, and download the appropriate polyfill only if date inputs are not natively supported.
8686
- Older browsers will download the full executable. See an example [rollup config here](https://github.com/mcshaz/simple-nicu-calcs/blob/master/rollup.config.js).
8787
- Check if the script has already been run in the [common file](https://github.com/mcshaz/esm-date-input-polyfill/blob/master/examples/esm-page-script.js) that the 2 enty files point to (a problem with Safari 10 respecting `<script type="module" src="...">` but _not_ respecting `<script nomodule src="...">`).

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esm-date-input-polyfill",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"deprecated": false,
55
"description": "Automatically adds datepickers to input[type=date] on IE, Firefox, and macOS Safari.",
66
"main": "dist/cjs/polyfill-if-required.cjs.js",

0 commit comments

Comments
 (0)