summaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-08-18 14:05:49 +1000
committerdaurnimator <quae@daurnimator.com>2017-08-18 14:05:49 +1000
commit22220c5992ed660ec6ed805b4275f9ec1378f60c (patch)
tree0328c6cabcf5b828219e8d169aaf5a3bbf252b50 /webpack.config.js
parent36f446c3d43a90063962f8af790e7b58b08765f5 (diff)
downloadfengari-22220c5992ed660ec6ed805b4275f9ec1378f60c.tar.gz
fengari-22220c5992ed660ec6ed805b4275f9ec1378f60c.tar.bz2
fengari-22220c5992ed660ec6ed805b4275f9ec1378f60c.zip
webpack.config.js: Use babel-loader instead of babili-webpack-plugin
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js36
1 files changed, 15 insertions, 21 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 7fbcf86..183d29f 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -1,41 +1,35 @@
const webpack = require('webpack');
const path = require('path');
-const BabiliPlugin = require("babili-webpack-plugin");
module.exports = [
{
entry: './src/fengari.js',
target: 'web',
+ node: false,
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'fengari.js',
library: 'fengari'
},
- externals: {
- "crypto": "crypto"
+ module: {
+ rules: [
+ {
+ test: [/\.js$/],
+ loader: 'babel-loader',
+ options: {
+ presets: [['env', {
+ "targets": {
+ "browsers": ["last 2 versions", "safari >= 7"]
+ }
+ }]]
+ }
+ }
+ ]
},
plugins: [
new webpack.DefinePlugin({
WEB: JSON.stringify(true),
})
]
- },
- {
- entry: './src/fengari.js',
- target: 'web',
- output: {
- path: path.resolve(__dirname, 'dist'),
- filename: 'fengari.min.js',
- library: 'fengari'
- },
- externals: {
- "crypto": "crypto"
- },
- plugins: [
- new webpack.DefinePlugin({
- WEB: JSON.stringify(true),
- }),
- new BabiliPlugin()
- ]
}
];