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.
34 lines
738 B
34 lines
738 B
'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'
|
|
}
|
|
*/
|
|
};
|
|
|