@polylith/builder 0.0.14 → 0.0.18
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.
- package/App.js +8 -3
- package/package.json +7 -3
package/App.js
CHANGED
|
@@ -1,10 +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
|
-
import jsx from 'rollup-plugin-jsx';
|
|
7
7
|
import html from "rollup-plugin-html";
|
|
8
|
+
|
|
8
9
|
import loadables from './plugin-loadables.js';
|
|
9
10
|
import mainHTML from './plugin-main-html.js';
|
|
10
11
|
import styles from "rollup-plugin-styles";
|
|
@@ -103,9 +104,13 @@ export class App {
|
|
|
103
104
|
input : {
|
|
104
105
|
input: input,
|
|
105
106
|
plugins: [
|
|
106
|
-
resolve.nodeResolve(
|
|
107
|
-
|
|
107
|
+
resolve.nodeResolve({
|
|
108
|
+
extensions: ['.js', '.jsx']
|
|
109
|
+
}),
|
|
108
110
|
commonjs(),
|
|
111
|
+
babel({
|
|
112
|
+
presets: ['@babel/preset-react'],
|
|
113
|
+
}),
|
|
109
114
|
loadables(this.loadables),
|
|
110
115
|
html({
|
|
111
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.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "The polylith builder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +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",
|
|
15
|
-
"
|
|
18
|
+
"babel": "^6.23.0",
|
|
16
19
|
"escape-string-regexp": "^5.0.0",
|
|
17
20
|
"fs-extra": "^10.0.0",
|
|
21
|
+
"less": "^4.1.2",
|
|
18
22
|
"rollup": "^2.58.0",
|
|
19
23
|
"rollup-plugin-html": "^0.2.1",
|
|
20
|
-
"
|
|
24
|
+
"rollup-plugin-jsx": "^1.0.3",
|
|
21
25
|
"rollup-plugin-styles": "^3.14.1",
|
|
22
26
|
"sass": "^1.43.4"
|
|
23
27
|
}
|