Skip to content

rails-jsdom 0.3.1

Choose a tag to compare

@jakehow jakehow released this 30 Nov 20:58
· 4 commits to main since this release
1118345

Fixed

  • Importing an importmap pin whose file is not in the asset load path, such as pin "blocks/pele", to: "pele_block.js" before pele_block.js exists or is built, fails with an error that names the pin and its file, when the import runs, as in a browser. Before, building the bundle failed with a path nobody wrote, such as Cannot read file: app/javascript/blocks/pele.js when a pin_all_from directory shared the pin's prefix, and a dynamic import of it failed with no word of the pin. A file of the pin's name in a pin_all_from directory is still used instead, as importmap-rails maps it.