vue3-sfc-loader
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -96,4 +96,3 @@ const Path = require('path'); | ||
entry: [ | ||
'core-js', | ||
'regenerator-runtime', | ||
Path.resolve(__dirname, '../src/bootstrap.js'), | ||
Path.resolve(__dirname, '../src/index.ts'), | ||
@@ -194,11 +193,13 @@ ], | ||
} : {}, | ||
unsafe: true, | ||
unsafe_comps: true, | ||
unsafe_Function: true, | ||
unsafe_math: true, | ||
unsafe_symbols: true, | ||
unsafe_methods: caniuse.isSupported('es6', targetsBrowsers), | ||
unsafe_proto: true, | ||
unsafe_regexp: true, | ||
unsafe_undefined: true, | ||
// beware, unsafe: true is not suitable for this project ! | ||
// unsafe: true, | ||
// unsafe_comps: true, | ||
// unsafe_Function: true, | ||
// unsafe_math: true, | ||
// unsafe_symbols: true, | ||
// unsafe_methods: caniuse.isSupported('es6', targetsBrowsers), | ||
// unsafe_proto: true, | ||
// unsafe_regexp: true, | ||
// unsafe_undefined: true, | ||
}, | ||
@@ -345,5 +346,5 @@ }, | ||
isProd ? { | ||
test: /\.(mjs|js|ts)$/, | ||
test: /\.(mjs|js|cjs|ts)$/, | ||
exclude: [ | ||
/core-js/, // Babel should not transpile core-js for correct work. | ||
/core-js-pure/, // Babel should not transpile core-js for correct work. | ||
/regenerator-runtime/, // transpile not needed | ||
@@ -356,3 +357,4 @@ ], | ||
sourceMaps: !noSourceMap, | ||
sourceType: 'unambiguous', // doc: https://babeljs.io/docs/en/options#sourcetype | ||
targets: targetsBrowsers, | ||
presets: [ | ||
@@ -364,11 +366,2 @@ | ||
{ | ||
useBuiltIns: 'entry', // https://babeljs.io/docs/en/babel-preset-env#usebuiltins | ||
corejs: { | ||
version: 3, | ||
proposals: true | ||
}, | ||
forceAllTransforms: true, | ||
targets: { | ||
browsers: targetsBrowsers, | ||
}, | ||
} | ||
@@ -378,4 +371,19 @@ ] | ||
], | ||
plugins: [ | ||
plugins: [ | ||
...!noPresetEnv ? [ | ||
[ | ||
"polyfill-corejs3", | ||
{ | ||
"method": "usage-pure" | ||
} | ||
], | ||
[ | ||
'babel-plugin-polyfill-regenerator', | ||
{ | ||
"method": "usage-pure" | ||
} | ||
] | ||
] : [], | ||
], | ||
@@ -382,0 +390,0 @@ } |
### [0.8.2](https://github.com/FranckFreiburger/vue3-sfc-loader/compare/v8.0.1...v0.8.2) (2021-06-29) | ||
### Features | ||
* **build:** uses non-polluting polyfills ([ca73b8f](https://github.com/FranckFreiburger/vue3-sfc-loader/commit/ca73b8f40321770d3256e565fa5dbc998a5bee5c)) | ||
### Bug Fixes | ||
* **core:** add bootstrap.js to handle special conditions (IE11) ([9111483](https://github.com/FranckFreiburger/vue3-sfc-loader/commit/9111483e48a5a63a29cd40c05390939f913abf71)) | ||
### [0.8.1](https://github.com/FranckFreiburger/vue3-sfc-loader/compare/v0.8.0...v0.8.1) (2021-06-28) | ||
@@ -3,0 +15,0 @@ |
@@ -22,3 +22,3 @@ { | ||
"license": "MIT", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"browserslist": "> 1%, last 2 versions, Firefox ESR, not dead, not ie 11", | ||
@@ -68,2 +68,3 @@ "main": "dist/vue3-sfc-loader.js", | ||
"babel-loader": "^8.2.2", | ||
"babel-plugin-polyfill-corejs3": "^0.2.3", | ||
"bn.js": "5", | ||
@@ -73,3 +74,3 @@ "buffer": "^6.0.3", | ||
"compression-webpack-plugin": "^8.0.0", | ||
"core-js": "^3.15.0", | ||
"core-js-pure": "^3.15.1", | ||
"cross-env": "^7.0.3", | ||
@@ -76,0 +77,0 @@ "dts-bundle": "^0.7.3", |
@@ -21,2 +21,3 @@ # vue3-sfc-loader | ||
* **esm** and **umd** bundles available | ||
* IE11 support (for vue2-sfc-loader only) | ||
@@ -89,5 +90,5 @@ | ||
[![latest bundle version](https://img.shields.io/npm/v/vue3-sfc-loader?label=latest%20version)](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/main/CHANGELOG.md) | ||
[<!--update-min-br-size-->![bundle minified+brotli size](https://img.shields.io/badge/min%2Bbr-341kB-blue)<!--/update-min-br-size-->](#dist) | ||
[<!--update-min-gz-size-->![bundle minified+gzip size](https://img.shields.io/badge/min%2Bgz-447kB-blue)<!--/update-min-gz-size-->](#dist) | ||
[<!--update-min-size-->![bundle minified size](https://img.shields.io/badge/min-1839kB-blue)<!--/update-min-size-->](#dist) | ||
[<!--update-min-br-size-->![bundle minified+brotli size](https://img.shields.io/badge/min%2Bbr-284kB-blue)<!--/update-min-br-size-->](#dist) | ||
[<!--update-min-gz-size-->![bundle minified+gzip size](https://img.shields.io/badge/min%2Bgz-359kB-blue)<!--/update-min-gz-size-->](#dist) | ||
[<!--update-min-size-->![bundle minified size](https://img.shields.io/badge/min-1384kB-blue)<!--/update-min-size-->](#dist) | ||
[![Snyk Vulnerabilities for vue3-sfc-loader](https://img.shields.io/snyk/vulnerabilities/github/FranckFreiburger/vue3-sfc-loader)](https://snyk.io/vuln/npm:vue3-sfc-loader) | ||
@@ -94,0 +95,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62
189
26710361
60
32115