jankapunkt / npm-package-template

:package: minimal NPM package template using Babel, Mocha, Chai, C8, Standardjs, JSDoc and Rollup.
https://jankapunkt.github.io/npm-package-template/
MIT License
17 stars 8 forks source link

Warning on build Dynamic import can only be transformed when transforming ES modules to AMD, CommonJS or SystemJS. #56

Open jankapunkt opened 11 months ago

jankapunkt commented 11 months ago

Describe the bug When building we get the message Dynamic import can only be transformed when transforming ES modules to AMD, CommonJS or SystemJS.

To Reproduce

  1. install
  2. run build script

Expected behavior Build should be either configured to fully support dynamic imports or build targets that don't support dynamic imports should appropriately configured so no warning is raised.

jankapunkt commented 11 months ago

Related: https://github.com/babel/babel/issues/14227