Add support for Javascript modules

Created on 26 August 2021, almost 3 years ago
Updated 5 April 2023, about 1 year ago

Problem/Motivation

If you use Javascript modules with chunk-splitting via a bundler like rollup or webpack, then the imported files are not considered when generating a static file-set

Steps to reproduce

Write modern Javascript and use a bundler like rollup or webpack to package up your JS into chunks.
Include an entry point via a libraries.yml file
Run tome static
Note that the static files include the entry point, but not any of the chunks that the browser imports via the import directive

Proposed resolution

This is not dissimilar to url imports in CSS files, so we should be able to do this in a similar fashion

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Fixed

Version

1.0

Component

Tome Static

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024