You can transform the original module based javascript to plain javascript using a bundler. For instance using rollup and rollup.config.js export default {
input: 'src/main.js',
output: {
file: 'dist/bundle.js',
format: 'iife'
}
}; The resulting bundle.js will be a vanilla javascript file without any external dependencies.
... View more