webpack.config.js
This file
Path
example/durable-objects/webpack.config.js
30 lines 路 603 bytes 路 JavaScript
Last changed by
Fixed durable objects example (#46)Yusuke Wadabefore adoptiona22a0eb
History of this fileTake it
12345678910111213141516171819202122232425262728293031const path = require('path')
module.exports = { entry: './src/index.ts', output: { filename: 'worker.mjs', libraryTarget: 'module', path: path.join(__dirname, 'dist'), }, devtool: 'cheap-module-source-map', mode: 'development', resolve: { extensions: ['.ts', '.tsx', '.js'], }, module: { rules: [ { test: /\.tsx?$/, loader: 'ts-loader', options: { // transpileOnly is useful to skip typescript checks occasionally: transpileOnly: true, }, }, ], }, experiments: { outputModule: true, },}