node-retry icon indicating copy to clipboard operation
node-retry copied to clipboard

commonjs -> ecmascript modules

Open brandonros opened this issue 3 years ago • 1 comments

not sure what to do about the tests (ending in .js and doing require()) as well as package.json engines talking about node >= version 4

brandonros avatar Aug 10 '22 05:08 brandonros

<script type="importmap">
      {
        "imports": {
          "retry": "https://cdn.jsdelivr.net/gh/brandonros/node-retry@mjs/index.mjs",
          "p-retry": "https://cdn.jsdelivr.net/npm/[email protected]/index.js"
        }
      }
    </script>
    <script type="module">
      import retry from 'retry'
      import pRetry from 'p-retry'

     ...

opens the door for this without the use of a bundler

brandonros avatar Aug 10 '22 05:08 brandonros