Skip to content

Commit

Permalink
Use commonjs for webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason3S committed Apr 24, 2023
1 parent 528b732 commit 06840b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -16,7 +16,6 @@
"dependencies": {
"@cspell/cspell-bundled-dicts": "workspace:*"
},
"main": "index.js",
"keywords": [],
"devDependencies": {
"@cspell/cspell-types": "workspace:*",
Expand Down
Expand Up @@ -33,8 +33,8 @@ const config = {
externals: [/^@cspell\/cspell-bundled-dicts/],
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].mjs',
libraryTarget: 'commonjs-module',
filename: '[name].js',
libraryTarget: 'commonjs',
},
};

Expand Down

0 comments on commit 06840b1

Please sign in to comment.