我有一个包含数千个单词的txt文件。但是,当我尝试将它们拉入python 3.7中的import babel from "rollup-plugin-babel";
import commonjs from "rollup-plugin-commonjs";
import resolve from "rollup-plugin-node-resolve";
import pkg from "./package.json";
export default {
input: "src/index.js",
output: [
{
file: pkg.main,
format: "cjs",
sourcemap: true
},
{
file: pkg.module,
format: "es",
sourcemap: true
}
],
external: Object.keys(pkg.peerDependencies || {}),
plugins: [
resolve(),
babel({
exclude: "**/node_modules/**"
}),
commonjs({ include: ["./index.js", "node_modules/**"] })
]
};
变量时,某些单词不会出现。
词典文件为here
例如:
dictionary
为什么会这样? 谢谢
答案 0 :(得分:1)
尝试以下代码:
(foo, bar)