You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Any chance to add es6.mixedImports option in the precinct.paperwork call?
I have to use some ES modules via dynamic imports like const aModule = (await import('aModule')).default , and these are not detected by the default precinct config, thus not included in the package.
Also to make it work, it's essential to upgrade precint to some later version, as this es6 stuff doesn't work in precinct@8 (es modules are catched, but their dependencies missing).
The text was updated successfully, but these errors were encountered:
serverless-plugin-include-dependencies worked just fine for me as I primarily maintain legacy cjs code, until some day some dependencies are only available as es modules.
nevertheless, on your side it's just about adding an option to paperwork and upgrading precint, seems to be backward-compatible and no breaking changes, huh?
Any chance to add
es6.mixedImports
option in theprecinct.paperwork
call?I have to use some ES modules via dynamic imports like
const aModule = (await import('aModule')).default
, and these are not detected by the default precinct config, thus not included in the package.Also to make it work, it's essential to upgrade
precint
to some later version, as this es6 stuff doesn't work inprecinct@8
(es modules are catched, but their dependencies missing).The text was updated successfully, but these errors were encountered: