3 Star 2 Fork 1

Gitee 极速下载 / serverless-dns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/serverless-dns/serverless-dns
克隆/下载
webpack.fly.cjs 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
const webpack = require("webpack");
module.exports = {
entry: "./src/server-node.js",
target: ["node", "es2022"],
mode: "production",
// enable devtool in development
// devtool: 'eval-cheap-module-source-map',
plugins: [
new webpack.IgnorePlugin({
resourceRegExp: /(\/deno\/.*\.ts$)|(.*-deno\.ts$)|(.*\.deno\.ts$)/,
}),
// stackoverflow.com/a/60325769
new webpack.optimize.LimitChunkCountPlugin({
maxChunks: 1,
}),
],
optimization: {
usedExports: true,
minimize: false,
},
experiments: {
outputModule: true,
},
// github.com/webpack/webpack/issues/14072
// see also: src/core/node/config.js
/* node: {
global: true,
__filename: true,
__dirname: true,
},*/
// require missing: github.com/webpack/webpack/issues/16029
// github.com/webpack/webpack/issues/13290
// stackoverflow.com/a/68916455
output: {
library: {
type: "module",
},
clean: true,
filename: "fly.mjs",
module: true,
},
/* or, cjs: stackoverflow.com/a/68916455
output: {
filename: "fly.cjs",
clean: true, // empty dist before output
},
*/
};
JavaScript
1
https://gitee.com/mirrors/serverless-dns.git
git@gitee.com:mirrors/serverless-dns.git
mirrors
serverless-dns
serverless-dns
main

搜索帮助

53164aa7 5694891 3bd8fe86 5694891