mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
738 B
35 lines
738 B
5 years ago
|
'use strict';
|
||
|
|
||
|
const path = require('path');
|
||
|
const nodeExternals = require('webpack-node-externals');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './index.js',
|
||
|
mode: 'development',
|
||
|
output: {
|
||
|
path: path.resolve(__dirname),
|
||
|
filename: 'duktool.js'
|
||
|
},
|
||
|
target: 'node',
|
||
|
externals: [ nodeExternals() ],
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.m?js$/,
|
||
|
exclude: /(node_modules|bower_components)/,
|
||
|
use: {
|
||
|
loader: "babel-loader",
|
||
|
options: {
|
||
|
presets: [ '@babel/preset-env' ]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
/*
|
||
|
node: {
|
||
|
fs: 'empty'
|
||
|
}
|
||
|
*/
|
||
|
};
|