@polylith/builder 0.1.18 → 0.1.19

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 +5 -9
  2. package/package.json +2 -3
package/App.js CHANGED
@@ -10,9 +10,7 @@ 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
- import builtins from 'rollup-plugin-node-builtins';
14
- import globals from 'rollup-plugin-node-globals';
15
-
13
+ import nodePolyfills from 'rollup-plugin-polyfill-node';
16
14
  import loader from './plugin-loader.js';
17
15
  import mainHTML from './plugin-main-html.js';
18
16
  import features from './plugin-features.js';
@@ -46,7 +44,7 @@ export default class App {
46
44
  * folder from the root for rolled up files
47
45
  */
48
46
  constructor(name, config) {
49
- var {root, index, dest, spec, testDest} = config;
47
+ var {root, index, dest, spec, testDest=''} = config;
50
48
 
51
49
  root = forceToPosix(root);
52
50
  this.root = root;
@@ -61,7 +59,7 @@ export default class App {
61
59
  this.index = index;
62
60
  this.spec = spec;
63
61
  this.fullIndexPath = path.posix.join(root, index);
64
- this.fullSpecPath = path.posix.join(root, spec);
62
+ this.fullSpecPath = spec ? path.posix.join(root, spec) : undefined;
65
63
 
66
64
  this.loadables = [];
67
65
  this.features = [];
@@ -574,8 +572,7 @@ export default class App {
574
572
  extensions: ['.js', '.jsx']
575
573
  }),
576
574
  commonjs(),
577
- globals(),
578
- builtins(),
575
+ nodePolyfills(),
579
576
  rollupJson(),
580
577
  jsconfig(this.root),
581
578
  babel({
@@ -662,8 +659,7 @@ export default class App {
662
659
  extensions: ['.js', '.jsx']
663
660
  }),
664
661
  commonjs(),
665
- globals(),
666
- builtins(),
662
+ nodePolyfills(),
667
663
  rollupJson(),
668
664
  jsconfig(this.root),
669
665
  babel({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.1.18",
3
+ "version": "0.1.19",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -26,8 +26,7 @@
26
26
  "rollup-plugin-html": "^0.2.1",
27
27
  "rollup-plugin-jsx": "^1.0.3",
28
28
  "rollup-plugin-livereload": "^2.0.5",
29
- "rollup-plugin-node-builtins": "^2.1.2",
30
- "rollup-plugin-node-globals": "^1.4.0",
29
+ "rollup-plugin-polyfill-node": "^0.11.0",
31
30
  "rollup-plugin-styles": "^4.0.0",
32
31
  "sass": "^1.43.4"
33
32
  }