diff --git a/app/javascript/application.js b/app/javascript/application.js index 6abc7d092f..c6d07223b8 100644 --- a/app/javascript/application.js +++ b/app/javascript/application.js @@ -1,6 +1,5 @@ // Entry point for the build script in your package.json -import 'jquery' // Blacklight 7 needs jQuery. Remove when we upgrade to Blacklight 8? import bootstrap from 'bootstrap/dist/js/bootstrap' import Blacklight from 'blacklight-frontend/app/assets/javascripts/blacklight/blacklight' diff --git a/app/javascript/jquery-shim.js b/app/javascript/jquery-shim.js deleted file mode 100644 index ad2d6a3cf1..0000000000 --- a/app/javascript/jquery-shim.js +++ /dev/null @@ -1,4 +0,0 @@ -import jquery from 'jquery' - -window.jQuery = jquery // for jquery-ui -window.$ = jquery; \ No newline at end of file diff --git a/package.json b/package.json index cf8a3cf5a1..cc65153d29 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "license": "Apache-2.0", "scripts": { - "build": "esbuild app/javascript/*.* --bundle --inject:app/javascript/jquery-shim.js --define:global=window --outdir=app/assets/builds", + "build": "esbuild app/javascript/*.* --bundle --define:global=window --outdir=app/assets/builds", "build:css": "sass ./app/assets/stylesheets/application.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules", "lint": "standard app/javascript/**/*.js", "lint_fix": "standard --fix app/javascript/**/*.js"