Skip to content

This is a snapshot to work around a loading issue with Next.js and Phoenix

License

Notifications You must be signed in to change notification settings

r26D/phoenix_js_esm_fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESM Loader work around

[phoenixframework/phoenix#4662] There is a problem that phoenix.js is shipped in a phoenix.esm.js and phoenix.cjs.js formats. When using Next.js with esmExternals: true the system tries to load the cjs instead of the esm.

The solution is to just change the file name from phoenix.esm.js -> phoenix.mjs.

Because it modifies the package.json this can't be done in a local project patch. So I'm just snap shotting 1.6.6 and making the change - with the hope that this will setting down in the future

Copyright and License

Copyright (c) 2014, Chris McCord.

Phoenix source code is licensed under the MIT License.

About

This is a snapshot to work around a loading issue with Next.js and Phoenix

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published