Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.

Commit

Permalink
Merge pull request #6 from curran/patch-1
Browse files Browse the repository at this point in the history
Correct spelling and grammar issues in comments
  • Loading branch information
martpie authored Dec 4, 2018
2 parents ae84bd1 + 59672ee commit 6876fbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ module.exports = (nextConfig = {}) => {
)
}

// Avoid Webpack to resolve transpiled modules path to their real path
// Avoid having Webpack resolve transpiled modules path to their real path
config.resolve.symlinks = false
config.externals = config.externals.map(external => {
if (typeof external !== 'function') return external
return (ctx, req, cb) =>
(Boolean(includes.find(include => include.test(req))) ? cb() : external(ctx, req, cb))
})

// Add a rule to include and parse all modueles
// Add a rule to include and parse all modules
config.module.rules.push({
test: /\.+(js|jsx|ts|tsx)$/,
loader: options.defaultLoaders.babel,
Expand Down

0 comments on commit 6876fbf

Please sign in to comment.