DEV: Replace mini-loader with Ember's loader.js library (#18643)

We already have this as a dependency, so it makes sense to use it rather than using our own not-quite-spec-compliant implementation
This commit is contained in:
David Taylor
2022-10-18 14:53:06 +01:00
committed by GitHub
parent 43c2841a69
commit f7fdaa97d1
4 changed files with 3 additions and 236 deletions

View File

@ -94,7 +94,7 @@ module PrettyText
end
root_path = "#{Rails.root}/app/assets/javascripts/"
ctx_load(ctx, "#{root_path}/mini-loader.js")
ctx_load(ctx, "#{root_path}/node_modules/loader.js/dist/loader/loader.js")
ctx_load(ctx, "#{root_path}/handlebars-shim.js")
ctx_load(ctx, "#{root_path}/node_modules/xss/dist/xss.js")
ctx.load("#{Rails.root}/lib/pretty_text/vendor-shims.js")