Skip to content

Commit

Permalink
remove unsupported platform files from reactnative and nativescript b…
Browse files Browse the repository at this point in the history
…uilds
  • Loading branch information
owenpearson committed Dec 1, 2020
1 parent 36bb250 commit 195b96b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Gruntfile.js
Expand Up @@ -62,7 +62,8 @@ module.exports = function (grunt) {
language_in: 'ECMASCRIPT3',
language_out: 'ECMASCRIPT3',
strict_mode_input: true,
checks_only: true
checks_only: true,
warning_level: 'QUIET'
}
},
'ably.js': compilerSpec('<%= dirs.static %>/ably.js')
Expand Down
16 changes: 16 additions & 0 deletions webpack.config.js
Expand Up @@ -121,6 +121,14 @@ const nativeScriptConfig = {
'platform-transports': path.resolve(browserPath, 'lib', 'transport'),
},
},
module: {
rules: [
{
test: /(jsonptransport\.js|domevent\.js)/,
use: 'null-loader',
},
],
},
node: {
crypto: 'empty',
Buffer: false,
Expand Down Expand Up @@ -158,6 +166,14 @@ const reactNativeConfig = {
'platform-transports': path.resolve(browserPath, 'lib', 'transport'),
},
},
module: {
rules: [
{
test: /jsonptransport\.js/,
use: 'null-loader',
},
],
},
node: {
crypto: 'empty',
Buffer: false,
Expand Down

0 comments on commit 195b96b

Please sign in to comment.