Improves minified browser build
This commit is contained in:
parent
8576bd0b71
commit
50ff66f86f
@ -8,14 +8,14 @@ export default {
|
||||
input: 'src/Formulate.js', // Path relative to package.json
|
||||
output: {
|
||||
name: 'Formulate',
|
||||
exports: 'named'
|
||||
// globals: {
|
||||
// 'is-plain-object': 'isPlainObject',
|
||||
// 'nanoid': 'nanoid',
|
||||
// 'is-url': 'isUrl'
|
||||
// }
|
||||
exports: 'named',
|
||||
globals: {
|
||||
'is-plain-object': 'isPlainObject',
|
||||
'nanoid/non-secure': 'nanoid',
|
||||
'is-url': 'isUrl'
|
||||
}
|
||||
},
|
||||
// external: ['is-plain-object', 'nanoid', 'is-url'],
|
||||
external: ['nanoid/non-secure'],
|
||||
plugins: [
|
||||
commonjs(),
|
||||
autoExternal(),
|
||||
|
@ -13,9 +13,8 @@ export default {
|
||||
format: 'iife',
|
||||
globals: {
|
||||
'is-plain-object': 'isPlainObject',
|
||||
'nanoid': 'nanoid',
|
||||
'is-url': 'isUrl',
|
||||
'crypto': 'crypto'
|
||||
'nanoid/non-secure': 'nanoid',
|
||||
'is-url': 'isUrl'
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
@ -24,7 +23,7 @@ export default {
|
||||
preferBuiltins: false
|
||||
}),
|
||||
commonjs(),
|
||||
internal(['is-plain-object', 'nanoid', 'is-url', 'crypto']),
|
||||
internal(['is-plain-object', 'nanoid/non-secure', 'is-url']),
|
||||
vue({
|
||||
css: true, // Dynamically inject css as a <style> tag
|
||||
compileTemplate: true // Explicitly convert template to render function
|
||||
|
2
dist/formulate.esm.js
vendored
2
dist/formulate.esm.js
vendored
File diff suppressed because one or more lines are too long
6
dist/formulate.min.js
vendored
6
dist/formulate.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/formulate.umd.js
vendored
2
dist/formulate.umd.js
vendored
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
||||
import nanoid from 'nanoid'
|
||||
import nanoid from 'nanoid/non-secure'
|
||||
|
||||
/**
|
||||
* The file upload class holds and represents a file’s upload state durring
|
||||
|
@ -171,6 +171,7 @@ class Formulate {
|
||||
}
|
||||
|
||||
export default new Formulate()
|
||||
|
||||
export {
|
||||
FileUpload
|
||||
}
|
||||
|
@ -56,7 +56,7 @@
|
||||
<script>
|
||||
import context from './libs/context'
|
||||
import { shallowEqualObjects, parseRules } from './libs/utils'
|
||||
import nanoid from 'nanoid'
|
||||
import nanoid from 'nanoid/non-secure'
|
||||
|
||||
export default {
|
||||
name: 'FormulateInput',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import nanoid from 'nanoid'
|
||||
import nanoid from 'nanoid/non-secure'
|
||||
import { map, arrayify } from './utils'
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user