Emit dist/index.mjs
This commit is contained in:
parent
1d5150a4ab
commit
5bd37df63b
2 changed files with 4 additions and 4 deletions
|
@ -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: {
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue