Skip to content

Commit

Permalink
simple bundler exemple
Browse files Browse the repository at this point in the history
  • Loading branch information
AMontagu committed Feb 5, 2020
1 parent d4efebd commit 44b7a45
Show file tree
Hide file tree
Showing 6 changed files with 5,396 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.DS_Store
node_modules
dist

# local env files
.env

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
.history
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 7 additions & 0 deletions simpleBundler/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import multiplier from './multiplier.js';

export function someMaths() {
console.log(multiplier);
console.log(5 * multiplier);
console.log(10 * multiplier);
}
1 change: 1 addition & 0 deletions simpleBundler/multiplier.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default 10;
Loading

0 comments on commit 44b7a45

Please sign in to comment.