I'm trying to use Uppy plugin, a plugin for uploading images, in a Ruby on Rails application.
The basic functionality works through CDN bundles, and I have no problem with that, this works fine. My problem happens when I need to use additional plugins by Uppy.
Importing those is done through using, require. For example:
const AwsS3 = require('@uppy/aws-s3')
const ms = require('ms')
How can I include those in a Rails project?
Answers to this question suggest using npm init
in a rails project, but this seems very radical. Is there an easier way to include a javascript library such as the one mentioned in a Rails project?