UNPKG

oklink-api

Version:

This is a non-official JS SDK API for calling OKLink's API product.

32 lines (30 loc) 768 B
// const path = require('path') import path from 'path' import { fileURLToPath } from 'url' const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) export default { entry: './src/main.ts', // devtool: 'inline-source-map', module: { rules: [ { test: /\.tsx?$/, use: 'ts-loader', exclude: /node_modules/, }, ], }, resolve: { extensions: ['.tsx', '.ts', '.js'], }, output: { filename: 'bundle.js', path: path.resolve(__dirname, 'dist'), // library: { // name: 'oklink-api', // type: 'umd', // }, }, plugins: [], }