UNPKG

yzhanjsinterpreter

Version:

A JavaScript Interpreter Using JS itself. JavaScript 解释器,包含词法分析、语法解析和执行

38 lines 769 B
const { resolve } = require('path') module.exports = { mode: 'development', entry: './src/index.js', output: { filename: 'yzhanjsinterpreter.min.js', path: resolve('docs'), library: 'yzhanJSInterpreter', libraryTarget: 'umd', globalObject: 'this', environment: { arrowFunction: false, bigIntLiteral: false, const: false, destructuring: false, dynamicImport: false, forOf: false, module: false, optionalChaining: false, templateLiteral: false } }, module: { rules: [ { test: /\.js$/, include: resolve('src'), use: ['swc-loader'] } ] }, devServer: { hot: true, open: true, port: 3000, static: resolve('docs'), } }