-
I don't suppose it is possible to do bundle-time transforms of non-code modules? I would like to have them transformed into ESM so that I can import as code from my project |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
We support css & json bundling OOB, but we don't allow custom bundle-times transforms for the time being. |
Beta Was this translation helpful? Give feedback.
-
I would like to serve RDF documents but parsing them in browsers in a constant PITA because most looking depends on large and problematic node libraries and built-ins. The workaround I have used in the past is to parse the documents at build time and reserialise into JS code which can be processed by RDF libraries. Here's a loader I recently hacked together for webpack 4
|
Beta Was this translation helpful? Give feedback.
-
In case loading RDF at runtime is an option for you, we happen to load RDF libraries in browser pretty fine (we shim most node dependencies, I've just added readable-stream one which we were lacking), e.g. Might help for demo purposes. |
Beta Was this translation helpful? Give feedback.
In case loading RDF at runtime is an option for you, we happen to load RDF libraries in browser pretty fine (we shim most node dependencies, I've just added readable-stream one which we were lacking), e.g.
https://webcomponents.dev/edit/dmZSLw2b506iTg1dNaK3/src/fetchShape.js
Might help for demo purposes.