Skip to content

Commit

Permalink
Update rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
thgh committed Jan 11, 2019
1 parent 24a054b commit 567ec48
Show file tree
Hide file tree
Showing 5 changed files with 1,314 additions and 18 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to `rollup-plugin-serve` will be documented in this file.

## [1.0.0] - unreleased
## [1.0.0] - 2019-01-11
### Fixed
- Update `ongenerate` to `generateBundle`

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@

## Installation
```
# Rollup v0.60+ and v1+
npm install --save-dev rollup-plugin-serve
# Rollup v0.59 and below
npm install --save-dev rollup-plugin-serve@0
```

## Usage
Expand All @@ -27,7 +31,7 @@ npm install --save-dev rollup-plugin-serve
import serve from 'rollup-plugin-serve'

export default {
input: 'entry.js',
input: 'src/main.js',
output: {
file: 'dist/bundle.js',
format: ...
Expand Down
14 changes: 8 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@
"module": "dist/index.es.js",
"jsnext:main": "dist/index.es.js",
"scripts": {
"build": "rollup -c -f cjs -o dist/index.cjs.js && rollup -c -f es -o dist/index.es.js",
"dev": "rollup -cw -f cjs -o dist/index.cjs.js",
"lint": "standard rollup.config.js src/**",
"prepare": "npm run build"
"build": "rollup -c",
"dev": "rollup -cw",
"lint": "standard --fix rollup.config.js src/**",
"prepare": "yarn lint && yarn build",
"test": "cd test && rollup -c || cd .."
},
"keywords": [
"rollup",
Expand All @@ -36,7 +37,8 @@
"opener": "1"
},
"devDependencies": {
"rollup": "^0.48.2",
"rollup-plugin-buble": "^0.15.0"
"rollup": "1",
"rollup-plugin-buble": "^0.15.0",
"standard": "12"
}
}
7 changes: 4 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ import buble from 'rollup-plugin-buble'

export default {
input: 'src/index.js',
output: 'dist/index.cjs.js',
plugins: [
buble()
output: [
{ file: 'dist/index.cjs.js', format: 'cjs' },
{ file: 'dist/index.es.js', format: 'esm' }
],
plugins: [buble()],
onwarn ({ code, message }) {
if (code !== 'UNRESOLVED_IMPORT') {
console.warn(message)
Expand Down

0 comments on commit 567ec48

Please sign in to comment.