-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove old babel config - remove webpack - add new babel config - add rollup config - update packages
- Loading branch information
1 parent
9308411
commit 43f9b9d
Showing
8 changed files
with
4,729 additions
and
3,684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
parser: 'babel-eslint', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
module.exports = function (api) { | ||
api.cache(true); | ||
|
||
const presets = [ | ||
'@babel/preset-env' | ||
// 'minify' | ||
]; | ||
const plugins = [ | ||
'@babel/transform-runtime', | ||
'@babel/plugin-proposal-export-default-from' | ||
]; | ||
// const ignore = [ | ||
// '**/*.test.js' | ||
// ]; | ||
|
||
return { | ||
presets, | ||
plugins | ||
// ignore | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import babel from 'rollup-plugin-babel'; | ||
import postcss from 'rollup-plugin-postcss'; | ||
import { terser } from 'rollup-plugin-terser'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
import commonjs from 'rollup-plugin-commonjs'; | ||
|
||
export default { | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
exports: 'named', | ||
name: 'vue-stripe-checkout', | ||
file: 'dist/index.js', | ||
format: 'esm' | ||
}, | ||
{ | ||
exports: 'named', | ||
name: 'VueStripeCheckout', | ||
file: 'dist/vue-stripe-checkout.js', | ||
format: 'umd' | ||
} | ||
], | ||
plugins: [ | ||
terser(), | ||
resolve(), | ||
babel({ | ||
runtimeHelpers: true, | ||
exclude: /node_modules/ | ||
}), | ||
postcss({ | ||
plugins: [] | ||
}), | ||
commonjs() | ||
] | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.