Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion build-browser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ rollup({
input: 'src/index.js',
plugins: [
babel({
presets: [[babelPresetEnv, { modules: false }]],
presets: [[babelPresetEnv, {
modules: false,
targets: {
node: '0.10',
ie: '11'
}
}]],
babelHelpers: 'bundled',
babelrc: false,
}),
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"url": "git+https://github.com/validatorjs/validator.js.git"
},
"devDependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/register": "^7.0.0",
"@rollup/plugin-babel": "^6.0.0",
"@babel/cli": "^7.28.3",
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@babel/register": "^7.28.3",
"@rollup/plugin-babel": "^6.1.0",
"babel-eslint": "^10.0.1",
"babel-plugin-add-module-exports": "^1.0.0",
"eslint": "^4.19.1",
Expand All @@ -50,7 +50,7 @@
"npm-run-all": "^4.1.5",
"nyc": "^14.1.0",
"rimraf": "^3.0.0",
"rollup": "^4.0.0",
"rollup": "^4.53.2",
"timezone-mock": "^1.3.6",
"uglify-js": "^3.0.19"
},
Expand Down