tslib.es6.js predates NodeJS's support for ES Modules. If you change the "import" directive in the export map as you've proposed, NodeJS will attempt to load the file as a CommonJS module, resulting in the following error:
SyntaxError Unexpected token 'export'
The tslib.es6.js file can be used in the browser, but not in NodeJS.
tslib.es6.js
predates NodeJS's support for ES Modules. If you change the"import"
directive in the export map as you've proposed, NodeJS will attempt to load the file as a CommonJS module, resulting in the following error:The
tslib.es6.js
file can be used in the browser, but not in NodeJS.