Skip to content

Commit

Permalink
test: mocha bundle without transpiling
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jun 7, 2021
1 parent dfdfdef commit 01f3738
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Expand Up @@ -32,7 +32,7 @@ const hostname = os.hostname();
const SAUCE_BROWSER_PLATFORM_MAP = {
'chrome@latest': 'Windows 10',
'MicrosoftEdge@latest': 'Windows 10',
'internet explorer@latest': 'Windows 10',
// 'internet explorer@latest': 'Windows 10',
'firefox@latest': 'Windows 10',
'safari@latest': 'macOS 10.13'
};
Expand Down
44 changes: 22 additions & 22 deletions rollup.config.js
Expand Up @@ -4,7 +4,7 @@ import json from '@rollup/plugin-json';
import nodePolyfills from 'rollup-plugin-node-polyfills';
import globals from 'rollup-plugin-node-globals';

import {babel} from '@rollup/plugin-babel';
// import {babel} from '@rollup/plugin-babel';

// Debugging tools
import visualizer from 'rollup-plugin-visualizer';
Expand All @@ -17,10 +17,10 @@ const config = {
output: {
file: './mocha.js',
format: 'umd',
sourcemap: true,
// sourcemap: true,
name: 'mocha',
banner: `// mocha@${version} transpiled to javascript ES5`,
intro: 'var regeneratorRuntime;'
banner: `// mocha@${version} in javascript ES2018`
// intro: 'var regeneratorRuntime;'
},
plugins: [
json(),
Expand All @@ -32,25 +32,25 @@ const config = {
nodePolyfills(),
nodeResolve({
browser: true
}),
babel({
exclude: /core-js/,
presets: [
[
'@babel/preset-env',
{
modules: false,
useBuiltIns: 'usage',
forceAllTransforms: true,
corejs: {
version: 3,
proposals: false
}
}
]
],
babelHelpers: 'bundled'
})
// babel({
// exclude: /core-js/,
// presets: [
// [
// '@babel/preset-env',
// {
// modules: false,
// useBuiltIns: 'usage',
// forceAllTransforms: true,
// corejs: {
// version: 3,
// proposals: false
// }
// }
// ]
// ],
// babelHelpers: 'bundled'
// })
],
onwarn: (warning, warn) => {
if (warning.code === 'CIRCULAR_DEPENDENCY') return;
Expand Down

0 comments on commit 01f3738

Please sign in to comment.