diff --git a/packages/react-charts/rollup.config.js b/packages/react-charts/rollup.config.js index 4a1aaa7f..e361a23a 100644 --- a/packages/react-charts/rollup.config.js +++ b/packages/react-charts/rollup.config.js @@ -16,7 +16,6 @@ const commonConfig = { commonjs(), postcss({ plugins: [ postcssImport(), postcssUrl({ url: 'inline' }) ], - extract: true, extract: 'index.css', extensions: [ '.css' ] }), diff --git a/packages/react-charts/rollup.input.js b/packages/react-charts/rollup.input.js index a8e0cac9..1faa6e28 100644 --- a/packages/react-charts/rollup.input.js +++ b/packages/react-charts/rollup.input.js @@ -1,11 +1,9 @@ -const fs = require('fs'); - -const fileTypes = [ '.ts', '.jsx', '.ts', '.tsx' ]; +const fs = require("fs"); +const fileTypes = [".ts", ".jsx", ".ts", ".tsx"]; function getModulePaths(path) { const moduleList = fs.readdirSync(path); - const modulePaths = []; moduleList.forEach((module) => { @@ -19,15 +17,11 @@ function getModulePaths(path) { return true; // continue loop }); - }); return modulePaths; } export function getInputFiles() { - return [ - './src/index.ts', - ...getModulePaths('./src') - ]; + return ["./src/index.ts", ...getModulePaths("./src")]; }