File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ babel 17-CalcArea.js --out-dir lib
2
+ babel 17-Book.js --out-dir lib
3
+ babel 17-ES2015-ES6-Modules.js --out-dir lib
4
+
5
+ node 17-ES2015-ES6-Modules-node
6
+
7
+ cd 17-ES2015-Modules-node
8
+ node --experimental-modules 17-ES2015-ES6-Modules.mjs
9
+
10
+ sudo npm i -g babel-preset-env
11
+ sudo npm i -g babel-plugin-add-module-exports babel-plugin-transform-es2015-modules-umd
12
+
13
+ babel 17-CalcArea.js --out-dir lib --plugins=add-module-exports,transform-es2015-modules-umd
14
+ babel 17-Book.js --out-dir lib --plugins=add-module-exports,transform-es2015-modules-umd
15
+ babel 17-ES2015-ES6-Modules.js --out-dir lib --plugins=add-module-exports,transform-es2015-modules-umd
16
+ babel 17-ES2015-ES6-Modules-browser.js --out-dir lib --plugins=add-module-exports,transform-es2015-modules-umd
Original file line number Diff line number Diff line change 1
1
// @ts -check
2
+ /* eslint-disable */
2
3
3
4
//* ****** EcmaScript 2015 (ES6): classes (https://goo.gl/UhK1n4)
4
5
class Book {
You can’t perform that action at this time.
0 commit comments