@agility/app-sdk
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "@agility/app-sdk", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "JavaScript library for building Agility CMS apps.", | ||
"main": "src/index.js", | ||
"main": "dist/agility-cms-app-sdk.node.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "build": "webpack --config webpack.config --mode=production" |
const path = require('path'); | ||
const { node } = require('webpack'); | ||
@@ -29,3 +30,32 @@ const browserConfig = { | ||
const nodeConfig = { | ||
target: 'node', | ||
entry: './src/index.js', | ||
output: { | ||
filename: 'agility-cms-app-sdk.node.js', | ||
path: path.resolve(__dirname, 'dist'), | ||
library: 'agility', | ||
libraryTarget: 'umd', | ||
libraryExport: 'default', | ||
umdNamedDefine: true, | ||
globalObject: 'typeof self !== \'undefined\' ? self : this' | ||
}, | ||
optimization: { | ||
minimize: false | ||
}, | ||
module: { | ||
rules : [ | ||
// JavaScript | ||
{ | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
use: ['babel-loader'], | ||
} | ||
] | ||
}, | ||
// Plugins | ||
plugins: [] | ||
} | ||
module.exports = [browserConfig] | ||
module.exports = [browserConfig, nodeConfig] |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
81647
15
1244