@ama-pt/agora-design-system 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -46,6 +46,13 @@ const withTM = require('next-transpile-modules')(['@ama-pt/agora-design-system']
46
46
 
47
47
  module.exports = withTM({
48
48
  webpack(config) {
49
+ // Allow dynamic import of svg icons without warnings
50
+ config.module = {
51
+ ...config.module,
52
+ exprContextCritical: false
53
+ };
54
+
55
+ // Prevent parse errors when loading .map files
49
56
  config.module.rules.push({
50
57
  test: /\.map$/i,
51
58
  use: 'raw-loader'
package/README.npm.md CHANGED
@@ -46,6 +46,13 @@ const withTM = require('next-transpile-modules')(['@ama-pt/agora-design-system']
46
46
 
47
47
  module.exports = withTM({
48
48
  webpack(config) {
49
+ // Allow dynamic import of svg icons without warnings
50
+ config.module = {
51
+ ...config.module,
52
+ exprContextCritical: false
53
+ };
54
+
55
+ // Prevent parse errors when loading .map files
49
56
  config.module.rules.push({
50
57
  test: /\.map$/i,
51
58
  use: 'raw-loader'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ama-pt/agora-design-system",
3
3
  "description": "Ágora Design system",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "main": "dist/cjs/components/index.js",
6
6
  "module": "dist/esm/components/index.js",
7
7
  "files": [