question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use pure ES modules

See original GitHub issue

See background at https://github.com/netlify/team-dev/issues/36

Once https://github.com/netlify/framework-info/issues/450 is done and released, we should use pure ES modules and make a major release.

This is more than just switching from CommonJS to import/export. See this list for other changes which might be involved. This should be broken in many PRs, as much as possible, to lower the risk. Also, non-breaking changes (such as adding file extensions in imports, or loading JSON files differently) should be done before the breaking changes (such as using import/export statements).

At the moment, framework-info is only used by:

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ehmickycommented, Jan 19, 2022

Done!

1reaction
nasivuelacommented, Oct 18, 2021

To be clear, I’m not contemplating using ESM directly on the browser at the moment, just wondering if our current setup will bundle an ESM package.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pure ESM package - gists · GitHub
Pure ESM package. The package that linked you here is now pure ESM. It cannot be require() 'd from CommonJS. This means you...
Read more >
Migrating an NPM package to use ES Modules - Medium
In this article, I'm going to show you the steps needed to convert an NPM package from using CommonJS (CJS) modules, to the...
Read more >
Using ECMAScript modules (ESM) with Node.js
Learn about using ES modules in Node.js today and get a closer look at how you can migrate your codebase to make use...
Read more >
How to use pure ESM packages in Kotlin/JS? - JavaScript
Use ESM yourself. **(preferred)**\ Use `import foo from 'foo'` instead of `const foo = require('foo')` to import the package. You also need to ......
Read more >
What does it take to support Node.js ESM? – The Guild
ECMAScript modules, also known as ESM, is the official standard format to package JavaScript, and fortunately Node.js supports it .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found