popper.js in bootstrap 4 gives SyntaxError Unexpected token export

前端 未结 6 1049
無奈伤痛
無奈伤痛 2020-12-04 16:15

I tried install bootstrap 4, and included following links




        
6条回答
  •  难免孤独
    2020-12-04 16:51

    Line 96 in README

    Dist targets

    Popper.js is currently shipped with 3 targets in mind: UMD, ESM and ESNext.

    • UMD - Universal Module Definition: AMD, RequireJS and globals;
    • ESM - ES Modules: For webpack/Rollup or browser supporting the spec;
    • ESNext: Available in dist/, can be used with webpack and babel-preset-env;

    Make sure to use the right one for your needs. If you want to import it with a

提交回复
热议问题