diff --git a/etc/webpack.config.js b/etc/webpack.config.js index 38e18c0..8d6c19e 100644 --- a/etc/webpack.config.js +++ b/etc/webpack.config.js @@ -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: { diff --git a/package.json b/package.json index 728f793..3314996 100644 --- a/package.json +++ b/package.json @@ -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",