@polylith/builder 0.0.11 → 0.0.16
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 +20 -0
- package/package.json +5 -2
package/App.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
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';
|
|
7
|
+
import jsx from 'rollup-plugin-jsx';
|
|
6
8
|
import html from "rollup-plugin-html";
|
|
7
9
|
import loadables from './plugin-loadables.js';
|
|
8
10
|
import mainHTML from './plugin-main-html.js';
|
|
@@ -104,6 +106,24 @@ export class App {
|
|
|
104
106
|
plugins: [
|
|
105
107
|
resolve.nodeResolve(),
|
|
106
108
|
commonjs(),
|
|
109
|
+
babel({
|
|
110
|
+
babelrc: false,
|
|
111
|
+
exclude: 'node_modules/**',
|
|
112
|
+
presets: [
|
|
113
|
+
[
|
|
114
|
+
'@babel/preset-env',
|
|
115
|
+
{
|
|
116
|
+
corejs: 3,
|
|
117
|
+
modules: false,
|
|
118
|
+
useBuiltIns: 'usage',
|
|
119
|
+
targets: {
|
|
120
|
+
ie: '11',
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
],
|
|
124
|
+
],
|
|
125
|
+
}),
|
|
126
|
+
jsx( {factory: 'React.createElement'} ),
|
|
107
127
|
loadables(this.loadables),
|
|
108
128
|
html({
|
|
109
129
|
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.16",
|
|
4
4
|
"description": "The polylith builder",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
"author": "Glenn Anderson",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@babel/preset-env": "^7.16.11",
|
|
13
14
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
14
15
|
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
15
16
|
"escape-string-regexp": "^5.0.0",
|
|
16
17
|
"fs-extra": "^10.0.0",
|
|
18
|
+
"less": "^4.1.2",
|
|
17
19
|
"rollup": "^2.58.0",
|
|
20
|
+
"rollup-plugin-babel": "^4.4.0",
|
|
18
21
|
"rollup-plugin-html": "^0.2.1",
|
|
19
|
-
"
|
|
22
|
+
"rollup-plugin-jsx": "^1.0.3",
|
|
20
23
|
"rollup-plugin-styles": "^3.14.1",
|
|
21
24
|
"sass": "^1.43.4"
|
|
22
25
|
}
|