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