Skip to content

Commit

Permalink
Replace node-libs-browser with node-stdlib-browser
Browse files Browse the repository at this point in the history
Closes #206.
  • Loading branch information
niksy committed Mar 23, 2024
1 parent 689aa04 commit d111242
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"minimist": "^1.2.0"<% } %><% if ( (manualTests || integrationTests) || ((browserModule && !sassModule) && (transpile || automatedTests)) ) { %><% if ( bundlingTool === 'webpack' ) { %>,
"webpack": "^5.2.0",<% if ( typescript && typescriptMode === 'full' ) { %>
"ts-loader": "^9.2.3",<% } %>
"node-libs-browser": "^2.2.1"<% } %><% } %><% if ( sassModule ) { %>,
"node-stdlib-browser": "^1.2.0"<% } %><% } %><% if ( sassModule ) { %>,
"sass-true": "^2.1.3"<% } %><% if ( integrationTests ) { %><% if ( cloudBrowsers ) { %>,
"@wdio/browserstack-service": "^6.6.7"<% } %>,
"wdio-docker-service": "^3.0.0",
Expand Down
4 changes: 2 additions & 2 deletions generators/app/templates/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const path = require('path');<% if ( codeCoverage ) { %>
const fs = require('fs');<% } %><% if ( bundlingTool === 'webpack' ) { %>
const nodeLibsBrowser = require('node-libs-browser');<% } %><% if ( bundlingTool === 'rollup' ) { %>
const stdLibBrowser = require('node-stdlib-browser');<% } %><% if ( bundlingTool === 'rollup' ) { %>
const { default: resolve } = require('@rollup/plugin-node-resolve');
const commonjs = require('@rollup/plugin-commonjs');
const nodeBuiltins = require('rollup-plugin-node-builtins');
Expand Down Expand Up @@ -87,7 +87,7 @@ module.exports = function ( baseConfig ) {
resolve: {<% if ( transpile && typescript && typescriptMode === 'full' ) { %>
extensions: ['...', '.ts'],<% } %>
fallback: {
assert: nodeLibsBrowser.assert
assert: stdLibBrowser.assert
}
}<% if ( transpile || codeCoverage ) { %>,
module: {
Expand Down

0 comments on commit d111242

Please sign in to comment.