Skip to content

craigtaub/our-own-babel-sourcemap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Our own babel sourcemaps

Test application, contains a small JS code generation compiler. Transform small subset of JS AST into real code and produce the source map.

Transformation

Change:

function add(number) {
  return number + 1;
}

Into:

function add(number) {
  return 1 + number;
}

Usage

npm run compile

Compile src/index.es6.js into /build with updated file and source map.

npm run start

Compile and start simple express server loading JS assets.

Releases

No releases published

Packages

No packages published