@polylith/builder 0.0.12 → 0.0.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 +8 -1
  2. package/package.json +7 -2
package/App.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import path from 'path';
2
2
 
3
3
  import * as rollup from 'rollup';
4
+ import babel from '@rollup/plugin-babel';
4
5
  import * as resolve from '@rollup/plugin-node-resolve';
5
6
  import commonjs from '@rollup/plugin-commonjs';
6
7
  import html from "rollup-plugin-html";
8
+
7
9
  import loadables from './plugin-loadables.js';
8
10
  import mainHTML from './plugin-main-html.js';
9
11
  import styles from "rollup-plugin-styles";
@@ -102,8 +104,13 @@ export class App {
102
104
  input : {
103
105
  input: input,
104
106
  plugins: [
105
- resolve.nodeResolve(),
107
+ resolve.nodeResolve({
108
+ extensions: ['.js', '.jsx']
109
+ }),
106
110
  commonjs(),
111
+ babel({
112
+ presets: ['@babel/preset-react'],
113
+ }),
107
114
  loadables(this.loadables),
108
115
  html({
109
116
  include: path.join(this.basePath, "**/*.html"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polylith/builder",
3
- "version": "0.0.12",
3
+ "version": "0.0.17",
4
4
  "description": "The polylith builder",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -10,13 +10,18 @@
10
10
  "author": "Glenn Anderson",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
+ "@babel/preset-env": "^7.16.11",
14
+ "@babel/preset-react": "^7.16.7",
15
+ "@rollup/plugin-babel": "^5.3.0",
13
16
  "@rollup/plugin-commonjs": "^21.0.0",
14
17
  "@rollup/plugin-node-resolve": "^13.0.5",
18
+ "babel": "^6.23.0",
15
19
  "escape-string-regexp": "^5.0.0",
16
20
  "fs-extra": "^10.0.0",
21
+ "less": "^4.1.2",
17
22
  "rollup": "^2.58.0",
18
23
  "rollup-plugin-html": "^0.2.1",
19
- "less": "^4.1.2",
24
+ "rollup-plugin-jsx": "^1.0.3",
20
25
  "rollup-plugin-styles": "^3.14.1",
21
26
  "sass": "^1.43.4"
22
27
  }