Last active
April 26, 2018 11:09
-
-
Save dmnsgn/05e9a1805e6e126f8c3de25d7c1f97c8 to your computer and use it in GitHub Desktop.
Revisions
-
dmnsgn revised this gist
Apr 26, 2018 . No changes.There are no files selected for viewing
-
dmnsgn created this gist
Apr 16, 2018 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ <!DOCTYPE html> <html> <head> <title>ES modules in the browser - almost - now | Package name maps</title> </head> <body> <!-- Declare the package map --> <script type="packagemap"> { "path_prefix": "/node_modules", "packages": { "lodash": { "path": "lodash-es", "main": "lodash.js" } } } </script> <!-- Bare import will be mapped --> <script type="module"> import { clamp } from "lodash"; // => import { partition } from "/node_modules/lodash-es/lodash.js"; </script> </body> </html>