Skip to content

Commit

Permalink
fix sample not loading in es6 runtime (OfficeDev#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
codexeon authored Oct 14, 2024
1 parent f6defd5 commit 8b0cf43
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Samples/auth/Outlook-Event-SSO-NAA/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Samples/auth/Outlook-Event-SSO-NAA/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"watch": "webpack --mode development --watch"
},
"dependencies": {
"@azure/msal-browser": "^3.24.0",
"@azure/msal-browser": "^3.26.1",
"core-js": "^3.36.0",
"regenerator-runtime": "^0.14.1"
},
Expand Down Expand Up @@ -62,4 +62,4 @@
"last 2 versions",
"ie 11"
]
}
}
14 changes: 11 additions & 3 deletions Samples/auth/Outlook-Event-SSO-NAA/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,22 @@ module.exports = async (env, options) => {
module: {
rules: [
{
test: /\.js$/,
test: /\.m?js$/,
// exclude: /node_modules/, // Exclude all node_modules except @azure
include: [path.resolve(__dirname, "node_modules/@azure"), path.resolve(__dirname, "src")],
exclude: /node_modules/,
use: {
loader: "babel-loader",
options: {
presets: ["@babel/preset-env"],
presets: [
[
"@babel/preset-env",
{
targets: {
browsers: ["since 2015"], // Create a bundle that is compatible with loading in older versions of Office clients.
},
},
],
],
},
},
},
Expand Down

0 comments on commit 8b0cf43

Please sign in to comment.