@polylith/builder 0.1.9 → 0.1.11

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 +7 -1
  2. package/package.json +3 -1
package/App.js CHANGED
@@ -10,6 +10,8 @@ import rollupJson from "@rollup/plugin-json"
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';
13
15
 
14
16
  import loader from './plugin-loader.js';
15
17
  import mainHTML from './plugin-main-html.js';
@@ -539,12 +541,16 @@ export default class App {
539
541
  this.templateVariables['codeVariables'] = codeVariables;
540
542
 
541
543
  var plugins = [
542
- jsconfig(this.root),
543
544
  resolve.nodeResolve({
545
+ preferBuiltins: true,
546
+ browser: true,
544
547
  extensions: ['.js', '.jsx']
545
548
  }),
546
549
  commonjs(),
550
+ globals(),
551
+ builtins(),
547
552
  rollupJson(),
553
+ jsconfig(this.root),
548
554
  babel({
549
555
  presets: ['@babel/preset-react'],
550
556
  babelHelpers: 'bundled',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -25,6 +25,8 @@
25
25
  "rollup-plugin-html": "^0.2.1",
26
26
  "rollup-plugin-jsx": "^1.0.3",
27
27
  "rollup-plugin-livereload": "^2.0.5",
28
+ "rollup-plugin-node-builtins": "^2.1.2",
29
+ "rollup-plugin-node-globals": "^1.4.0",
28
30
  "rollup-plugin-styles": "^4.0.0",
29
31
  "sass": "^1.43.4"
30
32
  }