Skip to content

Commit ac69abb

Browse files
authored
chore: mention resolve plugin in readme (#153)
* chore: mention `resolve` plugin in readme - Closes #54 * chore: wordy
1 parent e3b370e commit ac69abb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Note that we need to install Svelte as well as the plugin, as it's a 'peer depen
1717
```js
1818
// rollup.config.js
1919
import svelte from 'rollup-plugin-svelte';
20+
import resolve from '@rollup/plugin-node-resolve';
2021

2122
export default {
2223
input: 'src/main.js',
@@ -66,11 +67,16 @@ export default {
6667
// let Rollup handle all other warnings normally
6768
handler(warning);
6869
}
69-
})
70+
}),
71+
// see NOTICE below
72+
resolve({ browser: true }),
73+
// ...
7074
]
7175
}
7276
```
7377

78+
> **NOTICE:** You will need additional Rollup plugins. <br>Alone, this plugin translates Svelte components into CSS and JavaScript files. <br>You will need to include [`@rollup/plugin-node-resolve`](https://www.npmjs.com/package/@rollup/plugin-node-resolve) – and probably [`@rollup/plugin-commonjs`](https://www.npmjs.com/package/@rollup/plugin-commonjs) – in your Rollup config.
79+
7480

7581
## Preprocessing and dependencies
7682

0 commit comments

Comments
 (0)