stealjs / steal

Gets JavaScript
https://stealjs.com
MIT License
1.36k stars 522 forks source link

AMD define doesn't work for dynamic import? #1512

Open jesse23 opened 4 years ago

jesse23 commented 4 years ago

How often can you reproduce it? Have

Description: AMD define doesn't work for dynamic import.

Steps to reproduce:

define( [
          '//cdn.jsdelivr.net/npm/vue/dist/vue.js',
          'lib/httpVueLoader'
        ], ( Vue, httpVueLoader ) => {
...

In this practice, steal.js will go to a call stack which disabling define explicitly: image

  1. Include a link to your project (Here)
  2. Detail the exact steps taken to produce the problem
  3. Include a gif if applicable; you can use LICEcap to make a gif: http://www.cockos.com/licecap/

Expected results:

Environment:

Software Version
Steal version 2.2.4
Steal-tools version Not used
node -v 10.5.3
npm -v 6.4.1
Browser not use
Operating system windows