immutable-linked-ordered-map
Advanced tools
Comparing version 0.17.3 to 0.18.0
{ | ||
"name": "immutable-linked-ordered-map", | ||
"version": "0.17.3", | ||
"version": "0.18.0", | ||
"description": "ImmutableLinkedOrderedMap: A JavaScript immutable linked ordered map", | ||
@@ -14,8 +14,9 @@ "main": "dist/immutable-linked-ordered-map.js", | ||
"type": "git", | ||
"url": "git+https://github.com/tonix-tuft/immutable-linked-ordered-map.git" | ||
"url": "https://github.com/tonix-tuft/immutable-linked-ordered-map.git" | ||
}, | ||
"keywords": [ | ||
"javascript", | ||
"js", | ||
"immutable", | ||
"data-structure", | ||
"javascript", | ||
"ordered-map", | ||
@@ -22,0 +23,0 @@ "map", |
@@ -1,66 +0,68 @@ | ||
var webpack = require('webpack'); | ||
var libraryName = 'immutable-linked-ordered-map'; | ||
var outputFile = libraryName + '.js'; | ||
var srcEntryPoint = 'ImmutableLinkedOrderedMap.js' | ||
const webpack = require("webpack"); | ||
const libraryName = "immutable-linked-ordered-map"; | ||
let outputFile = libraryName + ".js"; | ||
const library = "ImmutableLinkedOrderedMap"; | ||
const srcEntryPoint = "ImmutableLinkedOrderedMap.js"; | ||
const path = require("path"); | ||
var TerserPlugin = require('terser-webpack-plugin') | ||
var env = process.env.WEBPACK_ENV; | ||
const TerserPlugin = require("terser-webpack-plugin"); | ||
const env = process.env.WEBPACK_ENV; | ||
if (env === 'build') { | ||
outputFile = libraryName + '.min.js'; | ||
if (env === "build") { | ||
outputFile = libraryName + ".min.js"; | ||
} else { | ||
outputFile = libraryName + ".js"; | ||
} | ||
else { | ||
outputFile = libraryName + '.js'; | ||
} | ||
var config = { | ||
entry: __dirname + '/src/' + srcEntryPoint, | ||
devtool: 'source-map', | ||
output: { | ||
path: __dirname + '/dist', | ||
filename: outputFile, | ||
library: libraryName, | ||
libraryTarget: 'umd', | ||
umdNamedDefine: true | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /(\\.jsx|\\.js)$/, | ||
loader: 'babel', | ||
exclude: /(node_modules|bower_components)/ | ||
}, | ||
{ | ||
test: /(\\.jsx|\\.js)$/, | ||
loader: "eslint-loader", | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: ['.js'] | ||
} | ||
entry: __dirname + "/src/" + srcEntryPoint, | ||
devtool: "source-map", | ||
output: { | ||
path: path.resolve(__dirname, "./dist"), | ||
filename: outputFile, | ||
library: library, | ||
libraryTarget: "umd", | ||
globalObject: "this", | ||
umdNamedDefine: true, | ||
libraryExport: "default" | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /(\\.jsx|\\.js)$/, | ||
loader: "babel-loader", | ||
exclude: /(node_modules|bower_components)/ | ||
}, | ||
{ | ||
test: /(\\.jsx|\\.js)$/, | ||
loader: "eslint-loader", | ||
exclude: /node_modules/ | ||
} | ||
] | ||
}, | ||
resolve: { | ||
extensions: [".js"] | ||
} | ||
}; | ||
if (env === 'build') { | ||
config.optimization = { | ||
minimize: true, | ||
minimizer: [ | ||
new TerserPlugin({ | ||
parallel: true, | ||
terserOptions: { | ||
output: { | ||
comments: false, | ||
} | ||
} | ||
}) | ||
] | ||
}; | ||
config.mode = 'production'; | ||
config.devtool = false; | ||
if (env === "build") { | ||
config.optimization = { | ||
minimize: true, | ||
minimizer: [ | ||
new TerserPlugin({ | ||
parallel: true, | ||
terserOptions: { | ||
output: { | ||
comments: false | ||
} | ||
} | ||
}) | ||
] | ||
}; | ||
config.mode = "production"; | ||
config.devtool = false; | ||
} else { | ||
config.mode = "development"; | ||
} | ||
else { | ||
config.mode = 'development'; | ||
} | ||
module.exports = config; | ||
module.exports = config; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
201080
4854