-
Notifications
You must be signed in to change notification settings - Fork 35
Use pure ES modules #749
Comments
I have opened several PRs to tackle most of the problems related to migrating to pure ES modules:
Each of those PRs can be released with the current codebase without any breaking changes nor change of behavior for consumers, including without switching to pure ES modules. Since each of those changes carries some risk with it, they are marked with Two problems are still pending:
The following PR is the final PR which does the actual migration. It includes all of the PRs above, plus the actual migration. It is in draft mode until all the above PRs are merged. Once this is done, the three following issues can be done:
|
Any progress on this? It's blocking a |
This is only about releasing zisi as esm module, this has nothing to do with how we bundle functions. What you are probably looking for is #750 The linked svelte kit issue (sveltejs/kit#5177) might have been fixed with sveltejs/kit#6666 from @eduardoboucas, but not sure. |
See background at https://github.com/netlify/team-dev/issues/36
Once #748 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 usingimport
/export
statements).This should only be done after pure ES modules are supported in both Netlify CLI (netlify/cli#3514) and Netlify Build (netlify/build#3742).
The text was updated successfully, but these errors were encountered: