Emit dist/index.mjs

This commit is contained in:
0x1eef 2024-10-22 19:44:19 -03:00
parent 1d5150a4ab
commit 5bd37df63b
2 changed files with 4 additions and 4 deletions

View file

@ -3,11 +3,11 @@ module.exports = (env, argv) => {
return {
mode: "development",
devtool: "source-map",
entry: './src/index.ts',
entry: "./src/index.ts",
output: {
filename: 'index.js',
filename: "index.mjs",
path: path.resolve(__dirname, "..", "dist"),
library: { type: 'module' },
library: { type: "module" },
},
experiments: { outputModule: true },
resolve: {

View file

@ -4,7 +4,7 @@
"description": "A programmer's interface to The Noble Quran",
"author": "0x1eef",
"license": "GPL-3.0",
"main": "dist/index.js",
"main": "dist/index.mjs",
"types": "dist/index.d.ts",
"scripts": {
"build": "npx webpack --config etc/webpack.config.js",