1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-16 00:20:06 +00:00

Merge pull request #407 from sasjs/fix-built-package

fix(build): provide process module for compatibility with browser
This commit is contained in:
Allan Bowe
2021-06-08 11:03:46 +03:00
committed by GitHub
3 changed files with 38 additions and 13267 deletions

13301
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -45,6 +45,7 @@
"jest": "^27.0.4", "jest": "^27.0.4",
"jest-extended": "^0.11.5", "jest-extended": "^0.11.5",
"path": "^0.12.7", "path": "^0.12.7",
"process": "^0.11.10",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"semantic-release": "^17.4.3", "semantic-release": "^17.4.3",
"terser-webpack-plugin": "^5.1.3", "terser-webpack-plugin": "^5.1.3",

View File

@@ -40,6 +40,9 @@ const browserConfig = {
filename: null, filename: null,
exclude: [/node_modules/], exclude: [/node_modules/],
test: /\.ts($|\?)/i test: /\.ts($|\?)/i
}),
new webpack.ProvidePlugin({
process: 'process/browser'
}) })
] ]
} }