mirror of
https://github.com/lancedikson/bowser
synced 2024-10-27 20:34:22 +00:00
chore(bulding): use modules: false
This commit is contained in:
parent
eda9e7326b
commit
fd8c542565
2
.babelrc
2
.babelrc
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"presets": [["@babel/preset-env", {
|
"presets": [["@babel/preset-env", {
|
||||||
"useBuiltIns": "entry",
|
"useBuiltIns": "entry",
|
||||||
"modules": "cjs",
|
"modules": false,
|
||||||
"loose": true,
|
"loose": true,
|
||||||
"targets": {
|
"targets": {
|
||||||
"ie": "8",
|
"ie": "8",
|
||||||
|
@ -9,8 +9,8 @@ module.exports = {
|
|||||||
mode: 'production', // "production" | "development" | "none"
|
mode: 'production', // "production" | "development" | "none"
|
||||||
// Chosen mode tells webpack to use its built-in optimizations accordingly.
|
// Chosen mode tells webpack to use its built-in optimizations accordingly.
|
||||||
entry: {
|
entry: {
|
||||||
bundled: ['@babel/polyfill', './src/bowser.js'],
|
bundled: ['@babel/polyfill', './src/index.js'],
|
||||||
es5: './src/bowser.js',
|
es5: './src/index.js',
|
||||||
}, // string | object | array
|
}, // string | object | array
|
||||||
// defaults to ./src
|
// defaults to ./src
|
||||||
// Here the application starts executing
|
// Here the application starts executing
|
||||||
|
Loading…
Reference in New Issue
Block a user