Thank you @aaronkyle for expressing what I feel too towards the observable team :o)
Concerning the file attachements, beside the announcement, I noticed the change in an unfortunate way.
I had successfully bundled a notebook referring to @jashkenas/inputs but since the header image was added as a file attachement src="${await FileAttachment("capstan.gif").url()}"
I failed because I need to do some additionnal configuration with webpack.
The error message of yarn build
is the following.
ERROR in ./node_modules/@maliky/3-filtres-pour-les-donnees-des-mooc/e93997d5089d7165@2200.js 4:203
Module parse failed: Unexpected token (4:203)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| export default function define(runtime, observer) {
| const main = runtime.module();
> const fileAttachments = new Map([["capstan.gif",new URL("./files/c051fbc024553912e31968b35e537d4ad3592201b5f8e7bd13fd9d02e38599c5d541a704d0858c676328babb3e5c9c35dd7c6d67240090d094882a1cad8eece4",import.meta.url)]]);
| main.builtin("FileAttachment", runtime.fileAttachments(name => fileAttachments.get(name)));
| main.variable(observer()).define(["md","FileAttachment"], async function(md,FileAttachment){return(
@ ./node_modules/@maliky/3-filtres-pour-les-donnees-des-mooc/482865d740b971e4@946.js 3:0-49 414:32-39
@ ./static/rdb/js/src/collapse.index.js
error Command failed with exit code 2.
The e93997d5089d7165@2200.js
is Jemery’s inputs notebook. and the error is related to webpack not been able to handle the file attachement type.
I’ve juste started to look into a solution to this and install bable loader for markdown, file and images (including gif) but something else is blocking the bundling process. Does it have to do with the Map or URL keyword ?
I’m sure that once I’ll have resolved this webpack configuration issue I get a lot of benefits from file attachements.