Skip to content

Commit

Permalink
disabled node runtime fallback (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
uve authored Feb 12, 2024
1 parent 4ead063 commit d617cf9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This page contains information about changes to the PowerBI Visual Tools (pbiviz).

## 5.4.2
* Added the **node: false** option to the webpack plugin to eliminate the use of the potentially dangerous **new Function()** method, which ensures compatibility with the Node.js runtime.
* Introduced support for *.mjs ECMAScript modules.

## 5.4.1
* Updated R-based visuals settings.ts file to work properly with the new API

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "powerbi-visuals-tools",
"version": "5.4.1",
"version": "5.4.2",
"description": "Command line tool for creating and publishing visuals for Power BI",
"main": "./bin/pbiviz.js",
"type": "module",
Expand Down
3 changes: 2 additions & 1 deletion src/webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const webpackConfig = {
'visual.js': ['./src/visual.ts']
},
target: 'web',
node: false,
devtool: false,
mode: "production",
optimization: {
Expand Down Expand Up @@ -74,7 +75,7 @@ const webpackConfig = {
"powerbi-visuals-api": 'null'
},
resolve: {
extensions: ['.tsx', '.ts', '.jsx', '.js', '.css'],
extensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.css'],
modules: ['node_modules', path.resolve(rootPath, 'node_modules')],
fallback: {
assert: "assert",
Expand Down

0 comments on commit d617cf9

Please sign in to comment.