@papillonarts/setup 0.49.2 → 0.49.4

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.
@@ -4,6 +4,7 @@ export declare function getBabelLoaderAdvancedSetup(): {
4
4
  use: {
5
5
  loader: string;
6
6
  options: {
7
+ sourceType: string;
7
8
  presets: (string | (string | {
8
9
  modules: boolean;
9
10
  targets: {
@@ -1 +1 @@
1
- {"version":3,"file":"babelLoader.d.ts","sourceRoot":"","sources":["../../../src/webpack/loader/babelLoader.ts"],"names":[],"mappings":"AAIA,wBAAgB,2BAA2B;;;;;;;;;;;;;;;;;;;;EAkC1C"}
1
+ {"version":3,"file":"babelLoader.d.ts","sourceRoot":"","sources":["../../../src/webpack/loader/babelLoader.ts"],"names":[],"mappings":"AAIA,wBAAgB,2BAA2B;;;;;;;;;;;;;;;;;;;;;EAsC1C"}
@@ -15,6 +15,10 @@ function getBabelLoaderAdvancedSetup() {
15
15
  use: {
16
16
  loader: 'babel-loader',
17
17
  options: {
18
+ // https://babeljs.io/docs/options#sourcetype
19
+ // polyfill-corejs3 (usage-global) injects `import` statements; without this, CJS files
20
+ // (e.g. packages/*/build) become ESM for webpack and fail with "exports is not defined".
21
+ sourceType: 'unambiguous',
18
22
  presets: [['@babel/preset-env', {
19
23
  modules: false,
20
24
  targets: {
@@ -11,6 +11,7 @@ export declare function getWebpackCommonSetup({ micrositeFolderPaths, packageJSO
11
11
  use: {
12
12
  loader: string;
13
13
  options: {
14
+ sourceType: string;
14
15
  presets: (string | (string | {
15
16
  modules: boolean;
16
17
  targets: {
@@ -1 +1 @@
1
- {"version":3,"file":"commonSetup.d.ts","sourceRoot":"","sources":["../../../src/webpack/setup/commonSetup.ts"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1E"}
1
+ {"version":3,"file":"commonSetup.d.ts","sourceRoot":"","sources":["../../../src/webpack/setup/commonSetup.ts"],"names":[],"mappings":"AAaA,wBAAgB,qBAAqB,CAAC,EAAE,oBAAoB,EAAE,WAAW,EAAE;;;CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2B1E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@papillonarts/setup",
3
- "version": "0.49.2",
3
+ "version": "0.49.4",
4
4
  "description": "Papillon Arts Setup",
5
5
  "homepage": "https://github.com/papillonarts/papillonarts/tree/master/packages/setup",
6
6
  "repository": {
@@ -17,14 +17,14 @@
17
17
  "exports": {
18
18
  "./babel": "./build/babel/index.js",
19
19
  "./eslint": "./build/eslint/index.mjs",
20
- "./jest": "./build/jest/index.ts",
20
+ "./jest": "./build/jest/index.js",
21
21
  "./prettier": "./build/prettier/index.js",
22
- "./storybook": "./build/storybook/index.ts",
23
- "./storybook/mainSetup": "./build/storybook/mainSetup.ts",
24
- "./storybook/managerSetup": "./build/storybook/managerSetup.ts",
25
- "./storybook/previewSetup": "./build/storybook/previewSetup.tsx",
22
+ "./storybook": "./build/storybook/index.js",
23
+ "./storybook/mainSetup": "./build/storybook/mainSetup.js",
24
+ "./storybook/managerSetup": "./build/storybook/managerSetup.js",
25
+ "./storybook/previewSetup": "./build/storybook/previewSetup.js",
26
26
  "./stylelint": "./build/stylelint/index.js",
27
- "./webpack": "./build/webpack/index.ts"
27
+ "./webpack": "./build/webpack/index.js"
28
28
  },
29
29
  "scripts": {
30
30
  "cleanup": "rimraf build node_modules package-lock.json",
@@ -37,5 +37,5 @@
37
37
  "build-acceptance": "npm run build",
38
38
  "build-release": "npm run build"
39
39
  },
40
- "gitHead": "1c5144e724e295cf7af76120bc384ca44ccc69f4"
40
+ "gitHead": "d60fdde69a23d1272c73ddb9548ac0a70f26babf"
41
41
  }