diff --git a/.babelrc b/.babelrc
deleted file mode 100644
index 9169002..0000000
--- a/.babelrc
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "presets": [
- [
- "@babel/preset-env",
- {
- "target": "node"
- }
- ]
- ],
- "plugins": [
- "@babel/transform-runtime"
- ],
- "retainLines": true,
- "comments": true
-}
diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index 43040f9..0000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,23 +0,0 @@
-version: 2
-jobs:
- build:
- working_directory: ~/project
- docker:
- - image: alekzonder/puppeteer # base pluginImage: node/8-slim
- steps:
- - checkout
- - run:
- name: Install yarn if required
- command: curl -o- -s -L https://yarnpkg.com/install.sh | bash
- - restore_cache:
- key: dependency-cache-{{ checksum "package.json" }}
- - run:
- name: Install package dependencies
- command: yarn --no-progress install --pure-lockfile
- - save_cache:
- key: dependency-cache-{{ checksum "package.json" }}
- paths:
- - node_modules
- - run:
- name: Test
- command: npm test
diff --git a/.eslintrc.json b/.eslintrc.json
deleted file mode 100644
index a388ce7..0000000
--- a/.eslintrc.json
+++ /dev/null
@@ -1,28 +0,0 @@
-{
- "env": {
- "browser": true,
- "node": true,
- "jest": true
- },
- "globals": {
- "Promise": true
- },
- "extends": "standard",
- "plugins": [ "html" ],
- "parser": "babel-eslint",
- "rules": {
- "indent": [ 2, 4 ],
-
- "no-multiple-empty-lines": [ 2, { "max": 1, "maxEOF": 0, "maxBOF": 0 } ],
-
- "no-use-before-define": [ 2, { "functions": false } ],
-
- "prefer-const": 1,
-
- "complexity": [ 1, 5 ]
- },
- "settings": {
- "html/indent": "0",
- "html/report-bad-indent": 2
- }
-}
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index e7de049..66af280 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,34 +1,17 @@
# Contributing
-Contributions are **welcome** and will be fully **credited**.
+Contributions are **welcome** and will be **credited**.
We accept contributions via Pull Requests on [Github](https://github.com/znck/rollup-plugin-vue).
-
## Pull Requests
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
-
-- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
-
+- **Document any change in behavior** - Make sure the `README.md` and any other relevant documentation is kept up-to-date.
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](http://semver.org/). Randomly breaking public APIs is not an option.
-
- **Create feature branches** - Don't ask us to pull from your master branch.
-
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
-
-- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing.
-
+- **Send coherent history** - Make sure each commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing.
- **Tip** to pass lint tests easier use the `npm run lint:fix` command.
-
-## Running Tests
-
-Launch mocha wih the watch option with:
-
-``` bash
-$ npm run dev
-```
-
-
**Happy coding**!
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml
new file mode 100644
index 0000000..33d3497
--- /dev/null
+++ b/.github/FUNDING.yml
@@ -0,0 +1,5 @@
+open_collective: vuejs
+patreon: evanyou
+github:
+ - yyx990803
+ - znck
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md
index 3ec7ec9..edab8fc 100644
--- a/.github/ISSUE_TEMPLATE.md
+++ b/.github/ISSUE_TEMPLATE.md
@@ -1,5 +1 @@
-### Expected behavior
-
-### Actual behavior
-
-### Steps to reproduce the behavior
+USE https://new-issue.vuejs.org/?repo=vuejs/rollup-plugin-vue
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
new file mode 100644
index 0000000..7c87f27
--- /dev/null
+++ b/.github/workflows/ci.yaml
@@ -0,0 +1,88 @@
+name: CI
+
+on: [push, pull_request]
+
+defaults:
+ run:
+ shell: bash
+
+jobs:
+ unit:
+ name: Unit tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup node_modules cache
+ uses: actions/cache@v1
+ env:
+ cache-name: yarn
+ with:
+ path: .yarn
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('/yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+
+ - name: Install yarn
+ run: hash yarn 2>/dev/null || curl -s -L https://yarnpkg.com/install.sh | sudo node
+
+ - name: Install dependencies and build packages
+ run: |
+ yarn config set cache-folder $(pwd)/.yarn
+ yarn install --frozen-lockfile
+ yarn run build
+
+ - name: Run unit tests
+ run: yarn test:unit --coverage
+
+ - uses: actions/upload-artifact@v2
+ with:
+ name: coverage
+ path: coverage/
+
+ e2e:
+ name: E2E tests
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Setup node_modules cache
+ uses: actions/cache@v1
+ env:
+ cache-name: yarn
+ with:
+ path: .yarn
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+
+ - name: Setup node_modules cache for fixtures
+ uses: actions/cache@v1
+ env:
+ cache-name: fixtures
+ with:
+ path: examples/.yarn
+ key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('examples/yarn.lock') }}
+ restore-keys: |
+ ${{ runner.os }}-build-${{ env.cache-name }}-
+ ${{ runner.os }}-build-
+
+ - name: Install yarn
+ run: hash yarn 2>/dev/null || curl -s -L https://yarnpkg.com/install.sh | sudo node
+
+ - name: Install dependencies and build packages
+ run: |
+ yarn config set cache-folder $(pwd)/.yarn
+ yarn install --frozen-lockfile
+ yarn run build
+
+ - name: Install dependencies of fixtures
+ run: |
+ cd examples
+ yarn config set cache-folder $(pwd)/.yarn
+ yarn install --frozen-lockfile
+
+ - name: Run e2e tests
+ run: yarn test:e2e
diff --git a/.gitignore b/.gitignore
index 541bb3d..e956ddd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,43 +1,6 @@
-dist/
-/.github/sereno/public
-/_cache
-test/style.css
-output/
-# Logs
-logs/
*.log
-npm-debug.log*
-
-# Runtime data
-pids
-*.pid
-*.seed
-
-# Directory for instrumented libs generated by jscoverage/JSCover
-lib-cov
-
-# Coverage directory used by tools like istanbul
-coverage
-.coveralls.yml
-b/
-
-# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
-.grunt
-
-# node-waf configuration
-.lock-wscript
-
-# Compiled binary addons (http://nodejs.org/api/addons.html)
-build/Release
-
-# Dependency directory
+.DS_Store
node_modules
-
-# Optional npm cache directory
-.npm
-
-# Optional REPL history
-.node_repl_history
-
+dist
.idea
-.DS_Store
+coverage/
\ No newline at end of file
diff --git a/.npmignore b/.npmignore
index 94e308b..d3dd6be 100644
--- a/.npmignore
+++ b/.npmignore
@@ -1,9 +1 @@
-config/
-test/
-circle.yml
-.gitignore
-.eslintrc.json
-CONDUCT.md
-CONTRIBUTING.md
-cover.png
-.idea/
\ No newline at end of file
+dist/test/
diff --git a/.vscode/settings.json b/.vscode/settings.json
new file mode 100644
index 0000000..8edc751
--- /dev/null
+++ b/.vscode/settings.json
@@ -0,0 +1,5 @@
+{
+ "markdownlint.config": {
+ "no-trailing-punctuation": false
+ }
+}
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 58d5fa0..e45b62c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,76 +1,210 @@
-# Change Log
+# [6.0.0](https://github.com/vuejs/rollup-plugin-vue/compare/v6.0.0-beta.11...v6.0.0) (2020-11-25)
-All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
-
-## [4.1.2](https://github.com/znck/rollup-plugin-vue/compare/v4.1.1...v4.1.2) (2018-05-12)
+### Features
+
+* new script setup compatibility ([d1a528f](https://github.com/vuejs/rollup-plugin-vue/commit/d1a528f77e0ba2dd174c9bc7d46b1f1753a6a04c))
+* support for new sfc experimental features ([d70f594](https://github.com/vuejs/rollup-plugin-vue/commit/d70f594f19087ed1440e44eb3f51e6b3ce1f298b)), closes [vuejs/rfcs#227](https://github.com/vuejs/rfcs/issues/227) [vuejs/rfcs#231](https://github.com/vuejs/rfcs/issues/231)
+
+
+
+# [6.0.0-beta.11](https://github.com/vuejs/rollup-plugin-vue/compare/v6.0.0-beta.9...v6.0.0-beta.11) (2020-11-02)
+
+
+### Bug Fixes
+
+* add language fallback for template code ([#407](https://github.com/vuejs/rollup-plugin-vue/issues/407)) ([e334e8c](https://github.com/vuejs/rollup-plugin-vue/commit/e334e8c1818cd85d6e8fa70e40ce357df02d4209))
+* avoid adding render function when no template in an SFC ([#387](https://github.com/vuejs/rollup-plugin-vue/issues/387)) ([6960203](https://github.com/vuejs/rollup-plugin-vue/commit/6960203fdc4285b4322a2c4f061f4a2773d49c9c))
+* avoid conflicting filename for sourcemaps ([#375](https://github.com/vuejs/rollup-plugin-vue/issues/375)) ([4ec1315](https://github.com/vuejs/rollup-plugin-vue/commit/4ec1315369c95c115c6271b6f93e1d9bf089c12f))
+* default render function name for ssr ([#402](https://github.com/vuejs/rollup-plugin-vue/issues/402)) ([714afd7](https://github.com/vuejs/rollup-plugin-vue/commit/714afd7178abdf785f05c0657923732bdaf5a9dd))
+* support options for template block preprocessor render ([#377](https://github.com/vuejs/rollup-plugin-vue/issues/377)) ([3222451](https://github.com/vuejs/rollup-plugin-vue/commit/3222451614e8c5e4c1c3188bd6388285a25851ba))
+
+
+### Features
+
+* add watchers to imports within vue files ([#385](https://github.com/vuejs/rollup-plugin-vue/issues/385)) ([cd41410](https://github.com/vuejs/rollup-plugin-vue/commit/cd414102bc503e74b9e17ad3b62e14f7dd33a18a))
+
+
+
+# [6.0.0-beta.9](https://github.com/vuejs/rollup-plugin-vue/compare/v6.0.0-beta.8...v6.0.0-beta.9) (2020-07-16)
+
+
+### Features
+
+* distinguish options for different CSS preprocessing languages ([#366](https://github.com/vuejs/rollup-plugin-vue/issues/366)) ([860595e](https://github.com/vuejs/rollup-plugin-vue/commit/860595e1132d284a40b4f54bc22401bd67046bc7))
+
+
+
+# [6.0.0-beta.8](https://github.com/vuejs/rollup-plugin-vue/compare/v6.0.0-beta.7...v6.0.0-beta.8) (2020-07-15)
+
+
+### Bug Fixes
+
+* backwards compat with older versions of compiler-sfc ([7cb9fa4](https://github.com/vuejs/rollup-plugin-vue/commit/7cb9fa4fb6789a8d70de3204243e3d2a7043ab59))
+
+
+
+# [6.0.0-beta.7](https://github.com/vuejs/rollup-plugin-vue/compare/v6.0.0-beta.6...v6.0.0-beta.7) (2020-07-15)
+
+
+### Features
+
+* `
-
-