mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
9cb9a05ec0
These were originally copied from node_modules via an "npm run thirdparty" task, in order to have them loadable with oldschool <script> tags. Since webpack supports CommonJS-style loading, that's no longer required, we can simply inline those scripts into the bundle. We need to use imports-loader though, in order to ensure that "define" is not available in some module scopes, which triggers AMD behavior that's not compatible with Webpack's loaders. See http://webpack.github.io/docs/shimming-modules.html I've had to pin to the exact versions used in the 3.x CMS, since jquery-upload has introduced an AMD wrapper sometime between 6.0 and 6.9 (the latest version NPM automatically pulls in). This AMD wrapper confuses Webpack, since it's trying to resolve the dependencies contained in it. We could create shims for those instead, but the easiest way was to simply revert to the versions already used before the Webpack migration (since the newer versions in node_modules were never actually copied into thirdparty, they weren't used before). |
||
---|---|---|
.. | ||
jlayout | ||
jquery-hoverIntent | ||
jquery-notice |