UNPKG

solid-panes

Version:

Solid-compatible Panes: applets and views for the mashlib and databrowser

42 lines (40 loc) 907 B
const HtmlWebpackPlugin = require('html-webpack-plugin') const NodePolyfillPlugin = require("node-polyfill-webpack-plugin") module.exports = [{ mode: 'development', entry: './dev/loader.ts', plugins: [ new HtmlWebpackPlugin({ template: './dev/index.html' }), new NodePolyfillPlugin() ], resolve: { extensions: ['.mjs', '.js', '.ts'], fallback: { "path": false } }, module: { rules: [ { test: /\.(mjs|js|ts)$/, exclude: /(node_modules|bower_components)/, use: { loader: 'babel-loader' } } ] }, externals: { fs: 'null', 'node-fetch': 'fetch', 'isomorphic-fetch': 'fetch', xmldom: 'window', 'text-encoding': 'TextEncoder', 'whatwg-url': 'window', '@trust/webcrypto': 'crypto' }, devServer: { static: './dist', compress: true, port: 9000 }, devtool: 'source-map' }]