Skip to content

Commit

Permalink
add export default
Browse files Browse the repository at this point in the history
  • Loading branch information
uupaa committed Mar 9, 2018
1 parent 505696b commit 22f3e2b
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"eslint:recommended"
],
"rules": {
"strict": [0],
"no-new": [0],
"new-cap": [0],
"no-empty": [0],
"no-shadow": [0],
"camelcase": [0],
"key-spacing": [0],
"dot-notation": [0],
"comma-dangle": [0],
"no-console": [0],
"no-multi-str": [0],
"no-multi-spaces": [0],
"no-control-regex": [0],
"no-unused-vars": [1, { "vars": "all", "args": "after-used"} ],
"no-underscore-dangle": [0],
"no-use-before-define": [0],
"no-inner-declarations": [0]
},
"globals": {
"unescape": false,
"escape": false,
"google": false
}
}


8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## ignore the dependency modules directory
node_modules

## ignore the file that is automatically regenerated
.DS_Store
*.mov
*.mp4

8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
## ignore the dependency modules directory
node_modules

## ignore the file that is automatically regenerated
.DS_Store
*.mov
*.mp4

2 changes: 2 additions & 0 deletions importModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,5 @@ export function importModule(url) {
});
}

export default importModule;

21 changes: 21 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "dynamic-import-polyfill",
"version": "1.0.1",
"description": "importModule() is a polyfill of import().",
"repository": {
"type": "git",
"url": "https://github.com/uupaa/dynamic-import-polyfill"
},
"scripts": {
"bundle": "npm run bundle:es6",
"bundle:es6": "rollup -c .rollup.es6.js",
"eslint": "eslint importModule.js"
},
"author": "uupaa.js@gmail.com",
"license": "MIT",
"devDependencies": {
"eslint": "^4.18.2",
"rollup": "^0.56.5",
"rollup-plugin-eslint": "^4.0.0"
}
}

0 comments on commit 22f3e2b

Please sign in to comment.