-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update for postcss 8 (postcss/postcss-color-rebeccapurple#16)
* deps: update dependencies * fix name * fix urls * update to postcss 8 api * deps: update css-values-parser to v5 Co-authored-by: Jonathan Neal <jonathantneal@hotmail.com>
- Loading branch information
1 parent
295a6ff
commit 9c16e31
Showing
6 changed files
with
622 additions
and
582 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,24 @@ | ||
import pkg from './package.json' | ||
import babel from '@rollup/plugin-babel' | ||
|
||
export default { | ||
...pkg.rollup, | ||
plugins: pkg.rollup.plugins.map(plugin => require(plugin)()), | ||
onwarn(warning, warn) { | ||
if (warning.code !== 'UNRESOLVED_IMPORT') warn(warning) | ||
} | ||
input: 'src/index.js', | ||
plugins: [ | ||
babel({ | ||
babelHelpers: 'bundled', | ||
presets: [ | ||
['@babel/env', { | ||
modules: false, | ||
targets: { node: 10 } | ||
}] | ||
] | ||
}) | ||
], | ||
external: [ | ||
'postcss', | ||
'postcss-values-parser' | ||
], | ||
output: [ | ||
{ file: 'dist/index.cjs.js', format: 'cjs', sourcemap: true, exports: 'default' }, | ||
{ file: 'dist/index.esm.js', format: 'esm', sourcemap: true, exports: 'default' } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.