Merge pull request #11474 from Snuffleupagus/pdfjs-dist-rm-dependencies
[api-minor] Remove the Webpack-only npm dependencies from `pdfjs-dist` (PR 11418 follow-up)
This commit is contained in:
commit
3772e30f9e
9
external/dist/webpack.js
vendored
9
external/dist/webpack.js
vendored
@ -12,8 +12,17 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
try {
|
||||
require.resolve("worker-loader");
|
||||
} catch (ex) {
|
||||
throw new Error(
|
||||
"Cannot find the `worker-loader` package, please make sure that it's correctly installed."
|
||||
);
|
||||
}
|
||||
|
||||
var pdfjs = require("./build/pdf.js");
|
||||
var PdfjsWorker = require("worker-loader!./build/pdf.worker.js");
|
||||
|
||||
|
@ -1548,12 +1548,6 @@ gulp.task(
|
||||
homepage: DIST_HOMEPAGE,
|
||||
bugs: DIST_BUGS_URL,
|
||||
license: DIST_LICENSE,
|
||||
dependencies: {
|
||||
"worker-loader": "^2.0.0", // used in external/dist/webpack.json
|
||||
},
|
||||
peerDependencies: {
|
||||
webpack: "^3.0.0 || ^4.0.0-alpha.0 || ^4.0.0", // from 'worker-loader'
|
||||
},
|
||||
browser: {
|
||||
fs: false,
|
||||
http: false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user