rollup-plugin-vue
Advanced tools
Comparing version 6.0.0-alpha.6 to 6.0.0-alpha.7
@@ -238,3 +238,3 @@ "use strict"; | ||
} | ||
output.push('import { defineComponent } from "vue"; export default defineComponent(script)'); | ||
output.push('export default script'); | ||
return output.join('\n'); | ||
@@ -241,0 +241,0 @@ } |
{ | ||
"name": "rollup-plugin-vue", | ||
"version": "6.0.0-alpha.6", | ||
"version": "6.0.0-alpha.7", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -1,27 +0,44 @@ | ||
# TSDX Bootstrap | ||
# rollup-plugin-vue@next | ||
This project was bootstrapped with [TSDX](https://github.com/jaredpalmer/tsdx). | ||
> Roll Vue 3 SFCs with Rollup. | ||
## Local Development | ||
Below is a list of commands you will probably find useful. | ||
``` js | ||
import vuePlugin from 'rollup-plugin-vue' | ||
### `npm start` or `yarn start` | ||
export default { | ||
plugins: [ | ||
vuePlugin(/* options */) | ||
] | ||
} | ||
``` | ||
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for your convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab. | ||
## Options | ||
<img src="https://user-images.githubusercontent.com/4060187/52168303-574d3a00-26f6-11e9-9f3b-71dbec9ebfcb.gif" width="600" /> | ||
``` js | ||
export interface Options { | ||
include: string | RegExp | (string | RegExp)[] | ||
exclude: string | RegExp | (string | RegExp)[] | ||
Your library will be rebuilt if you make edits. | ||
// use 'node' if compiling for SSR | ||
target: 'node' | 'browser' | ||
### `npm run build` or `yarn build` | ||
// if true, will attach __file to component even in production. | ||
// defaults to false. | ||
exposeFilename: boolean | ||
Bundles the package to the `dist` folder. | ||
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module). | ||
// if true, handle preprocessors directly instead of delegating to other | ||
// rollup plugins | ||
// defaults to false. | ||
preprocessStyles?: boolean | ||
cssModulesOptions?: { | ||
// https://github.com/css-modules/postcss-modules#usage | ||
} | ||
<img src="https://user-images.githubusercontent.com/4060187/52168322-a98e5b00-26f6-11e9-8cf6-222d716b75ef.gif" width="600" /> | ||
### `npm test` or `yarn test` | ||
Runs the test watcher (Jest) in an interactive mode. | ||
By default, runs tests related to files changed since the last commit. | ||
// these are simply passed on to @vue/compiler-sfc | ||
compiler | ||
compilerOptions | ||
transformAssetUrls | ||
preprocessCustomRequire | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45
18569