weak-dictionary
Version:
Universal ES6-compatible WeakMap wrapper
26 lines (24 loc) • 472 B
JavaScript
var path = require("path"),
webpack = require("webpack");
module.exports = {
cache: true,
entry: "./src/index.js",
output: {
filename: "dist/weak-dictionary.js",
library: "weakdictionary",
libraryTarget: "umd"
},
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel',
query: {
optional: ['runtime'],
stage: 0
}
}
]
}
};