We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The text was updated successfully, but these errors were encountered:
修改打包配置 rollup.config.js
rollup.config.js
import vue from "rollup-plugin-vue"; import autoprefixer from "autoprefixer"; import precss from "precss"; import babel from "@rollup/plugin-babel"; export default [ { input: "./src/index.vue", output: { format: "esm", file: "dist/picker.esm.js", sourceMap: false }, plugins: [ vue({ style: { postcssPlugins: [precss(), autoprefixer()] }, needMap: false }), babel({ exclude: "node_modules/**", extensions: [".js", ".ts", ".tsx", ".vue"], babelHelpers: "bundled" }) ] } ];
根目录增加 babel.config.json
babel.config.json
{ "presets": ["@babel/preset-env"] }
运行 1 npm run rollup 2 npm run build
npm run rollup
npm run build
得到新的vue-picker.js
vue-picker.js
Sorry, something went wrong.
尝试可用。 目前自己的解决办法是将vue-picker.js,图示部分const变为var。
No branches or pull requests
The text was updated successfully, but these errors were encountered: