Comments (5)
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.
from framework-info.
Done!
from framework-info.
netlify-react-ui: will this be a problem when importing this module from netlify-react-ui? Do we bundle code to make ES modules work in netlify-react-ui? Or maybe we now only support browsers with ES modules support? @nasivuela Do you know what the situation is?
We do bundle the code with webpack + esbuild. framework-info is relatively big, we split it from the main bundle and download it after the main bundle.
I do not know how it will behave with an only ESM package but I can see this sentence My repos are not the place to ask ESM/TypeScript/Webpack/Jest/ts-node/CRA support questions.
in sindresorhus' guide 😅 Let me ask on the FE guild.
from framework-info.
framework-info
uses the designated package.json
browser
field:
Line 6 in 95b9819
and uses
browserslist
to target Line 115 in 95b9819
I think Webpack uses the browser
field for web based targets.
Based on #152, I believe we do support quite old browsers in the UI app
from framework-info.
The following items are left, in order:
-
6.1.0
changed the way JSON files were imported.build-info
and Netlify CLI have successfully upgraded to6.1.0
, but we should also upgrade it innetlify-react-ui
. - #577 is a WIP to add pure ES modules. I have released a release candidate on npm which I've been trying to use in
netlify-react-ui
(https://github.com/netlify/netlify-react-ui/pull/9862). I've discovered 8 different issues, some rather complex, related to doing so. I have filed https://github.com/netlify/netlify-react-ui/issues/9869 to organize those issues, which are currently blocking that PR. I might be able to do some of those, but others will require some help from our front-end folks. - Remove some of the tests of this repository which are now irrelevant (https://github.com/netlify/framework-info/pull/577/files#r763497854)
- Try to remove the Webpack bundle altogether. I believe this should work, but we need to make a release candidate and try it with
netlify-react-ui
. It would be good to do it as a follow-up step, separate from the ones above. Note this is only the Webpack bundle published to npm (npm run build:browser:core
andwebpack.config.core.js
), not the Webpack bundle used for the "Vanilla test site" (npm run build:browser:site-react
andwebpack.config.site.js
, which should be removed by https://github.com/netlify/framework-info/pull/577/files#r763497854)
from framework-info.
Related Issues (20)
- feature: support frameworks with identical configuration file names and no dependencies
- feature: handle command arguments with spaces
- Over-eager detection of next-nx? HOT 4
- Upgrade minimal Node.js version to Node 12 HOT 2
- update deprecated angular build command
- [security] Enforce Branch Protections
- Add Remix detection HOT 1
- Cypress tests on Firefox are failing
- Update the Remix dev command
- ntl dev hangs and times out waiting for port 3000 when a project uses vite as a build tool HOT 1
- Update site to return list of frameworks HOT 1
- Qwik excluded npm dependency for Vite framework info has a typo
- Add SolidJS framework configuration
- chore: Drop Node 12 support in @netlify/framework-info HOT 2
- SvelteKit framework info is out of date
- 9.4.0 package entrypoint missing
- Eleventy v2.0 supports new filenames for config files.
- Add missing framework info for Remix
- Svelte should not assume dev server is available HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework-info.