Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disabled node runtime fallback #508

Merged
merged 1 commit into from
Feb 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading