Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

Add install for rollup #29

Merged
merged 3 commits into from
Aug 29, 2021
Merged

Add install for rollup #29

merged 3 commits into from
Aug 29, 2021

Conversation

dangvanthanh
Copy link
Contributor

Add install for rollup in README.md

@antfu antfu merged commit 947d219 into unplugin:main Aug 29, 2021
@super-fool
Copy link

@dangvanthanh when i use unplugin-vue2-script-setup/rollup, error is 'default' is not exported by ./Index.vue

export default {
  input: "./index.js",
  output: [
    {
      format: "es",
      file: "./dist/index.js",
      sourcemap: true,
    },
  ],
  plugins: [
    vue({
      css: false,
    }),
    scss(),
    css({ output: "index.css" }),
    nodeResolve(),
    scriptSetup({}),
    commonjs(),
    esbuild({
      minify: true,
    }),
  ],
};

@dangvanthanh
Copy link
Contributor Author

@super-fool

You should move vue below scriptSetup. It's working

export default {
  input: "./index.js",
  output: [
    {
      format: "es",
      file: "./dist/index.js",
      sourcemap: true,
    },
  ],
  plugins: [
    scss(),
    css({ output: "index.css" }),
    nodeResolve(),
    commonjs(),
    scriptSetup({}),
    vue({
      css: false,
    }),
    esbuild({
      minify: true,
    }),
  ],
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants