Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump packages #318

Merged
merged 18 commits into from
Dec 21, 2020
8 changes: 1 addition & 7 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const path = require('path')

const withWorkers = require('@zeit/next-workers')
const withTM = require('next-transpile-modules')(['pdfjs-dist/lib'])
const withTM = require('next-transpile-modules')(['pdfjs-dist'])

const csp = require('./csp.config')
const helpers = require('./utils/helpers')
Expand Down Expand Up @@ -93,12 +93,6 @@ const nextConfig = {
'react-dom': path.join(__dirname, 'node_modules', 'react-dom'),
})

config.module.rules.push({
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre',
})

// TODO: Remove once https://github.com/zeit/next-plugins/blob/master/packages/next-workers/index.js#L20 is released
config.output.globalObject = 'self'
return config
Expand Down
Loading