This commit is contained in:
Leah 2019-07-09 23:19:55 +02:00 committed by GitHub
commit 99afc4b217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 111 additions and 58 deletions

View File

@ -10,7 +10,8 @@
"rules": {
"brace-style": "off",
"comma-dangle": ["warn", "always-multiline"],
"indent": "off"
"indent": "off",
"require-atomic-updates": "off"
},
"settings": {
"react": {

View File

@ -1,7 +1,4 @@
module.exports = {
linters: {
'{src,test}/**/*.js': ['eslint --fix', 'git add'],
'*.md': ['prettier --write', 'git add'],
},
ignore: ['**/dist/**/*.js'],
'{src,test}/**/*.js': [`eslint --fix`, `git add`],
'*.md': ['prettier --write', 'git add'],
};

View File

@ -1,6 +1,6 @@
{
"name": "microbundle",
"version": "0.12.0-next.1",
"version": "0.12.0-next.3",
"description": "Zero-configuration bundler for tiny JS libs, powered by Rollup.",
"main": "dist/microbundle.js",
"source": "src/index.js",
@ -42,15 +42,15 @@
"author": "Jason Miller <jason@developit.ca> (http://jasonformat.com)",
"license": "MIT",
"dependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "7.4.4",
"@babel/core": "^7.5.4",
"@babel/plugin-proposal-class-properties": "7.5.0",
"@babel/plugin-syntax-jsx": "^7.2.0",
"@babel/plugin-transform-flow-strip-types": "^7.4.4",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.5.4",
"@babel/preset-flow": "^7.0.0",
"asyncro": "^3.0.0",
"autoprefixer": "^9.6.0",
"autoprefixer": "^9.6.1",
"babel-plugin-macros": "^2.4.2",
"babel-plugin-transform-async-to-promises": "^0.8.12",
"babel-plugin-transform-replace-expressions": "^0.2.0",
@ -64,46 +64,43 @@
"lodash.merge": "^4.6.1",
"module-details-from-path": "^1.0.3",
"pretty-bytes": "^5.2.0",
"rollup": "^1.15.1",
"rollup": "^1.16.7",
"rollup-plugin-alias": "^1.5.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-bundle-size": "^1.0.1",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-es3": "^1.1.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.0.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.0.3",
"rollup-plugin-terser": "^5.0.0",
"rollup-plugin-typescript2": "^0.21.1",
"sade": "^1.5.0",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript2": "^0.21.2",
"sade": "^1.6.0",
"tiny-glob": "^0.2.6",
"tslib": "^1.10.0",
"typescript": "^3.5.1"
"typescript": "^3.5.3"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
"@babel/node": "^7.4.5",
"@babel/cli": "^7.5.0",
"@babel/node": "^7.5.0",
"@babel/plugin-proposal-throw-expressions": "^7.2.0",
"@babel/preset-env": "^7.4.5",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.8.0",
"core-js": "3.1.3",
"cross-env": "^5.2.0",
"directory-tree": "^2.2.3",
"eslint": "^5.16.0",
"eslint": "^6.0.1",
"eslint-config-developit": "^1.1.1",
"eslint-config-prettier": "^4.3.0",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"esm": "^3.2.22",
"fs-extra": "^8.0.1",
"husky": "^2.4.0",
"fs-extra": "^8.1.0",
"husky": "^3.0.0",
"jest": "^24.8.0",
"lint-staged": "^8.2.0",
"lint-staged": "^9.1.0",
"prettier": "^1.18.2",
"regenerator-runtime": "^0.13.2",
"rimraf": "^2.6.3",
"shell-quote": "^1.6.1",
"strip-ansi": "^5.2.0",
"travis-size-report": "^1.0.1"
"travis-size-report": "^1.1.0"
}
}

View File

@ -102,6 +102,7 @@ export default babelPlugin.custom(babelCore => {
merge(
{
loose: true,
useBuiltIns: false,
targets: customOptions.targets,
},
preset.options,
@ -129,6 +130,7 @@ export default babelPlugin.custom(babelCore => {
: customOptions.targets,
modules: false,
loose: true,
useBuiltIns: false,
exclude: ['transform-async-to-generator', 'transform-regenerator'],
},
]);

File diff suppressed because one or more lines are too long

3
test/fixtures/pure/package.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"name": "pure"
}

6
test/fixtures/pure/src/index.js vendored Normal file
View File

@ -0,0 +1,6 @@
// this is currently broken because of a bug in terser
// https://github.com/terser-js/terser/issues/353
/** @__PURE__ */
export function foo() {
return 'hello world';
}