[Pkg-javascript-devel] Bug#932965: node-magic-string: broken ES module

Pirate Praveen praveen at onenetbeyond.org
Thu Jul 25 09:10:38 BST 2019


Package: node-magic-string
Version: 0.25.3-1
Severity: important

Provided magic-string.es.js does not match location mentioned in "module" field of package.json

With import path changed and directly running ES module in rollup,

$ node --
experimental-modules bin/src/index.js           (node:19550) ExperimentalWarning: The ESM module loader is experimental.                        file:///home/praveen/forge/node-rollup/src/Bundle.js:3                                          import { Bundle as MagicStringBundle } from 'magic-string';                                              ^^^^^^                                 SyntaxError: The requested module 'magic-string' does not provide an export named 'Bundle'          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)

Please ship the file in dist to match package.json and fix the ES module exports.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20190725/48c6e7d9/attachment.html>


More information about the Pkg-javascript-devel mailing list