Skip to content

Commit d617cf9

Browse files
authored
disabled node runtime fallback (#508)
1 parent 4ead063 commit d617cf9

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

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

5+
## 5.4.2
6+
* 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.
7+
* Introduced support for *.mjs ECMAScript modules.
8+
59
## 5.4.1
610
* Updated R-based visuals settings.ts file to work properly with the new API
711

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "powerbi-visuals-tools",
3-
"version": "5.4.1",
3+
"version": "5.4.2",
44
"description": "Command line tool for creating and publishing visuals for Power BI",
55
"main": "./bin/pbiviz.js",
66
"type": "module",

src/webpack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const webpackConfig = {
1313
'visual.js': ['./src/visual.ts']
1414
},
1515
target: 'web',
16+
node: false,
1617
devtool: false,
1718
mode: "production",
1819
optimization: {
@@ -74,7 +75,7 @@ const webpackConfig = {
7475
"powerbi-visuals-api": 'null'
7576
},
7677
resolve: {
77-
extensions: ['.tsx', '.ts', '.jsx', '.js', '.css'],
78+
extensions: ['.tsx', '.ts', '.jsx', '.js', '.mjs', '.css'],
7879
modules: ['node_modules', path.resolve(rootPath, 'node_modules')],
7980
fallback: {
8081
assert: "assert",

0 commit comments

Comments
 (0)