mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-03 18:45:48 +00:00
feat(source-maps): Generate source-maps for browser build (#2010)
Improve debugging for users loading in library via unpkg or jsdelivr
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
"files": [
|
||||
"dist/npm/*",
|
||||
"build/xrpl-latest-min.js",
|
||||
"build/xrpl-latest.js"
|
||||
"build/xrpl-latest-min.js.map",
|
||||
"build/xrpl-latest.js",
|
||||
"build/xrpl-latest.js.map"
|
||||
],
|
||||
"main": "dist/npm/",
|
||||
"unpkg": "build/xrpl-latest-min.js",
|
||||
|
||||
@@ -23,6 +23,7 @@ function getDefaultConfiguration() {
|
||||
path: path.join(__dirname, 'build/'),
|
||||
filename: `xrpl.default.js`,
|
||||
},
|
||||
devtool: 'source-map',
|
||||
plugins: [
|
||||
new webpack.NormalModuleReplacementPlugin(/^ws$/, './WSWrapper'),
|
||||
new webpack.ProvidePlugin({ process: 'process/browser' }),
|
||||
@@ -45,7 +46,12 @@ function getDefaultConfiguration() {
|
||||
}),
|
||||
],
|
||||
module: {
|
||||
rules: [],
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
use: ['source-map-loader'],
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
Reference in New Issue
Block a user