@polylith/builder 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/App.js +3 -3
  2. package/package.json +2 -2
package/App.js CHANGED
@@ -6,13 +6,12 @@ import { babel } from '@rollup/plugin-babel';
6
6
  import * as resolve from '@rollup/plugin-node-resolve';
7
7
  import commonjs from '@rollup/plugin-commonjs';
8
8
  import rollupJson from "@rollup/plugin-json"
9
-
9
+ import svgr from '@svgr/rollup'
10
10
  import html from 'rollup-plugin-html';
11
11
  import livereload from 'rollup-plugin-livereload';
12
12
  import styles from "rollup-plugin-styles";
13
13
  import builtins from 'rollup-plugin-node-builtins';
14
14
  import globals from 'rollup-plugin-node-globals';
15
- import reactSvg from "rollup-plugin-react-svg";
16
15
 
17
16
  import loader from './plugin-loader.js';
18
17
  import mainHTML from './plugin-main-html.js';
@@ -567,7 +566,8 @@ export default class App {
567
566
  presets: ['@babel/preset-react'],
568
567
  babelHelpers: 'bundled',
569
568
  }),
570
- reactSvg(),
569
+ svgr({svgo: false}),
570
+ loadConfigs(this.configs),
571
571
  loader(this.loadables),
572
572
  features(this.featureIndexes),
573
573
  html({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -16,6 +16,7 @@
16
16
  "@rollup/plugin-commonjs": "^21.0.0",
17
17
  "@rollup/plugin-json": "^5.0.2",
18
18
  "@rollup/plugin-node-resolve": "^13.0.5",
19
+ "@svgr/rollup": "^6.5.1",
19
20
  "babel": "^6.23.0",
20
21
  "escape-string-regexp": "^5.0.0",
21
22
  "fast-glob": "^3.2.12",
@@ -27,7 +28,6 @@
27
28
  "rollup-plugin-livereload": "^2.0.5",
28
29
  "rollup-plugin-node-builtins": "^2.1.2",
29
30
  "rollup-plugin-node-globals": "^1.4.0",
30
- "rollup-plugin-react-svg": "^3.0.3",
31
31
  "rollup-plugin-styles": "^4.0.0",
32
32
  "sass": "^1.43.4"
33
33
  }