As per the issue on github
- Clone this repo
- run
npm install
- run
npm test
. The output should ideally only contain English stopwords
As per the issue on github
npm install
npm test
. The output should ideally only contain English stopwordsimport { eng } from "stopword"; | |
console.log(eng); |
{ | |
"name": "test", | |
"browser": "index.js", | |
"type": "module", | |
"version": "1.0.0", | |
"description": "testing tree-shaking in stopword", | |
"main": "index.js", | |
"scripts": { | |
"test": "webpack && cat dist/main.js" | |
}, | |
"dependencies": { | |
"stopword": "^2.0.8", | |
"webpack": "^5.89.0" | |
}, | |
"devDependencies": { | |
"webpack-cli": "^5.1.4" | |
} | |
} |
import webpack from "webpack"; | |
export default [ | |
{ | |
mode: "production", | |
entry: "./index.js", | |
optimization: { | |
usedExports: true | |
}, | |
}, | |
]; |