Skip to content

Commit 3f39545

Browse files
committed
Vanilla JS: /* eslint-disable */
1 parent e50ce8a commit 3f39545

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Untitled-1

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

examples/chapter01/16-ES2015-ES6-Classes.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// @ts-check
2+
/* eslint-disable */
23

34
//* ****** EcmaScript 2015 (ES6): classes (https://goo.gl/UhK1n4)
45
class Book {

0 commit comments

Comments
 (0)