Skip to content

Ability to use dependency manager and pin JS files form node_modules #277

Closed
@thisismydesign

Description

@thisismydesign

I know importmap-rails is not meant to be used with package.json but hear me out..

I'm all in favor of ditching the JS build step which complicates things a lot. But I would also like to have proper dependency management for JS. I don't think these exclude each other. I think the principles of importmaps work just fine with package.json, the example in the readme says as much: import React from "./node_modules/react"

Those of us who are ok with having yarn or npm installed could have the best of both worlds:

All my issues would be solved by: pin 'tom-select', to: 'node_modules/tom-select/dist/esm/tom-select.complete.js'

Is this possible? Is there a reason why this can't be an option?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions