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