Skip to content

Commit

Permalink
chore: update webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
csalinas-dev committed Jan 2, 2024
1 parent 0802c27 commit a32e60e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-source-sharepoint-online",
"version": "1.0.0",
"version": "1.0.1",
"description": "Sources data for Gatsby from Sharepoint Online.",
"scripts": {
"develop": "gatsby develop --no-cache",
Expand Down
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ const outputPath = path.resolve(

module.exports = {
mode: "production",
target: "node",
target: "es2020",
entry: ["isomorphic-fetch", "./src/index.mjs"],
experiments: {
outputModule: true,
},
output: {
filename: "gatsby-node.mjs",
path: outputPath,
library: "gatsby-source-sharepoint-online",
libraryTarget: "commonjs2",
},
externals: [nodeExternals()],
module: {
Expand Down

0 comments on commit a32e60e

Please sign in to comment.