On Thu, 25 Jul 2019 12:56:00 +0530 Pirate Praveen <[email protected]> 
wrote:
> Package: node-acorn
> Version: 5.5.3+ds3-3
> Severity: important
> 
> When trying to use ES module version of rollup,
> 
> $ node --experimental-modules bin/src/index.js           (node:19235) 
> ExperimentalWarning: The ESM module loader is experimental.                   
>      file:///home/praveen/forge/node-rollup/src/Module.js:1                   
>                        import { parse } from 'acorn';                         
>   ^^^^^                                  SyntaxError: The requested module 
> 'acorn' does not provide an export named 'parse'                  at 
> ModuleJob._instantiate (internal/modules/esm/module_job.js:93:21)             
>                at async ModuleJob.run 
> (internal/modules/esm/module_job.js:108:20)                              at 
> async Loader.import (internal/modules/esm/loader.js:134:24)
> 
> It seems the shipped ES module is broken.
> 

We can ignore this bug till ESM loader is declared stable, as it needs an 
upstream change.

Currently node core ESM loader will consider a file as ES module only if 
package.json has "type": " module" field or the file extension is .mjs.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-- 
Pkg-javascript-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to