mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
Transpile PDF.js v4 with Babel (#19846)
GitOrigin-RevId: 1338dbae0683d72ab84ee58d1128d22754d14567
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"compact": false,
|
||||
"presets": [
|
||||
[
|
||||
"@babel/env",
|
||||
|
||||
@@ -125,7 +125,10 @@ module.exports = {
|
||||
test: /\.([jt]sx?|[cm]js)$/,
|
||||
// Only compile application files and specific dependencies
|
||||
// (other npm and vendored dependencies must be in ES5 already)
|
||||
exclude: [/node_modules\/(?!(react-dnd|chart\.js|@uppy)\/)/, vendorDir],
|
||||
exclude: [
|
||||
/node_modules\/(?!(react-dnd|chart\.js|@uppy|pdfjs-dist401)\/)/,
|
||||
vendorDir,
|
||||
],
|
||||
use: [
|
||||
{
|
||||
loader: 'babel-loader',
|
||||
|
||||
Reference in New Issue
Block a user